https://gcc.gnu.org/g:1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa
commit r15-8319-g1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa Author: Kushal Pal <kushalpal...@gmail.com> Date: Mon Aug 12 05:48:27 2024 +0000 gccrs: Fixed testcase gcc/testsuite/ChangeLog: * rust/borrowck/test_move.rs: Assigning `a` to `c` is the correct way to test the behaviour. Signed-off-by: Kushal Pal <kushalpal...@gmail.com> Diff: --- gcc/testsuite/rust/borrowck/test_move.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/rust/borrowck/test_move.rs b/gcc/testsuite/rust/borrowck/test_move.rs index 2b5e0c37bb51..26a1a5b7bdec 100644 --- a/gcc/testsuite/rust/borrowck/test_move.rs +++ b/gcc/testsuite/rust/borrowck/test_move.rs @@ -12,5 +12,5 @@ fn test_move_fixed() { let a = 1; // a is now primitive and can be copied let b = a; - let c = b; -} \ No newline at end of file + let c = a; +}