diff options
author | Kushal Pal <kushalpal109@gmail.com> | 2024-08-12 05:48:27 +0000 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-08-14 13:45:13 +0000 |
commit | 44664e3875976d8770c830eb468ac6524a2a8aa8 (patch) | |
tree | 2c2849de16dfe29299977396f173f5859716c86c /gcc | |
parent | be1e78ba333435e2106227905bc63dfeb8718ff3 (diff) | |
download | gcc-44664e3875976d8770c830eb468ac6524a2a8aa8.zip gcc-44664e3875976d8770c830eb468ac6524a2a8aa8.tar.gz gcc-44664e3875976d8770c830eb468ac6524a2a8aa8.tar.bz2 |
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; +} |