Skip to content

Commit

Permalink
Fixed testcase
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
braw-lee authored and CohenArthur committed Aug 14, 2024
1 parent be1e78b commit 44664e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcc/testsuite/rust/borrowck/test_move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
let c = a;
}

0 comments on commit 44664e3

Please sign in to comment.