From: Kushal Pal Date: Mon, 12 Aug 2024 05:48:27 +0000 (+0000) Subject: Fixed testcase X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44664e3875976d8770c830eb468ac6524a2a8aa8;p=thirdparty%2Fgcc.git 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 --- 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; +}