rust/src/test/ui/issues/issue-17385.stderr

24 lines
697 B
Plaintext
Raw Normal View History

2018-07-15 16:11:54 -05:00
error[E0382]: use of moved value: `foo`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-17385.rs:18:11
2018-07-15 16:11:54 -05:00
|
LL | drop(foo);
| --- value moved here
2019-03-09 06:03:44 -06:00
LL | match foo {
2018-07-15 16:11:54 -05:00
| ^^^ value used here after move
|
= note: move occurs because `foo` has type `X`, which does not implement the `Copy` trait
error[E0382]: use of moved value: `e`
2018-12-25 09:56:47 -06:00
--> $DIR/issue-17385.rs:25:11
2018-07-15 16:11:54 -05:00
|
LL | drop(e);
| - value moved here
2019-03-09 06:03:44 -06:00
LL | match e {
2018-07-15 16:11:54 -05:00
| ^ value used here after move
|
= note: move occurs because `e` has type `Enum`, which does not implement the `Copy` trait
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0382`.