https://gcc.gnu.org/g:44664e3875976d8770c830eb468ac6524a2a8aa8

commit 44664e3875976d8770c830eb468ac6524a2a8aa8
Author: Kushal Pal <kushalpal...@gmail.com>
Date:   Mon Aug 12 05:48:27 2024 +0000

    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;
+}

Reply via email to