diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-12 05:48:27 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-19 15:32:03 +0100 |
commit | 1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa (patch) | |
tree | feb436a2ef710149571e404806e3f20003f9b9a9 /gcc | |
parent | 04bc5a98a1da2e5cceefede34950d088e7923f06 (diff) | |
download | gcc-1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa.zip gcc-1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa.tar.gz gcc-1ed44d6cb29fda8d1ffc4bdee27d6dc0db4088fa.tar.bz2 |
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 <kushalpal109@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/borrowck/test_move.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/rust/borrowck/test_move.rs b/gcc/testsuite/rust/borrowck/test_move.rs index 2b5e0c3..26a1a5b 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; +} |