]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fixed testcase
authorKushal Pal <kushalpal109@gmail.com>
Mon, 12 Aug 2024 05:48:27 +0000 (05:48 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Wed, 19 Mar 2025 14:32:03 +0000 (15:32 +0100)
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 <kushalpal109@gmail.com>
gcc/testsuite/rust/borrowck/test_move.rs

index 2b5e0c37bb516703994fe15105c27cd396b4f907..26a1a5b7bdec2f8c9fa114a899ec0d4c62828912 100644 (file)
@@ -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;
+}