test fix for #54015
This commit is contained in:
parent
44b3674d8e
commit
671e77d60b
3 changed files with 33 additions and 0 deletions
11
src/test/ui/liveness/liveness-move-call-arg.nll.stderr
Normal file
11
src/test/ui/liveness/liveness-move-call-arg.nll.stderr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
error[E0382]: use of moved value: `x`
|
||||
--> $DIR/liveness-move-call-arg.rs:19:14
|
||||
|
|
||||
LL | take(x); //~ ERROR use of moved value: `x`
|
||||
| ^ value moved here, in previous iteration of loop
|
||||
|
|
||||
= note: move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0382`.
|
||||
11
src/test/ui/liveness/liveness-move-in-loop.nll.stderr
Normal file
11
src/test/ui/liveness/liveness-move-in-loop.nll.stderr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
error[E0382]: use of moved value: `y`
|
||||
--> $DIR/liveness-move-in-loop.rs:21:25
|
||||
|
|
||||
LL | x = y; //~ ERROR use of moved value
|
||||
| ^ value moved here, in previous iteration of loop
|
||||
|
|
||||
= note: move occurs because `y` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0382`.
|
||||
11
src/test/ui/moves/move-in-guard-2.nll.stderr
Normal file
11
src/test/ui/moves/move-in-guard-2.nll.stderr
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
error[E0382]: use of moved value: `x`
|
||||
--> $DIR/move-in-guard-2.rs:20:24
|
||||
|
|
||||
LL | (_, 2) if take(x) => (), //~ ERROR use of moved value: `x`
|
||||
| ^ value moved here, in previous iteration of loop
|
||||
|
|
||||
= note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
|
||||
|
||||
error: aborting due to previous error
|
||||
|
||||
For more information about this error, try `rustc --explain E0382`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue