From: Kushal Pal <kushalpal...@gmail.com>

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>
---
 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 2b5e0c37bb5..26a1a5b7bde 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;
+}
-- 
2.45.2

Reply via email to