2018-08-08 07:28:26 -05:00
|
|
|
error[E0382]: use of moved value: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ref-suggestion.rs:4:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 12:53:43 -06:00
|
|
|
LL | let x = vec![1];
|
|
|
|
| - move occurs because `x` has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let y = x;
|
|
|
|
| - value moved here
|
2019-03-11 15:18:35 -05:00
|
|
|
LL | x;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ref-suggestion.rs:8:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-01-24 12:53:43 -06:00
|
|
|
LL | let x = vec![1];
|
|
|
|
| - move occurs because `x` has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait
|
2018-08-08 07:28:26 -05:00
|
|
|
LL | let mut y = x;
|
|
|
|
| - value moved here
|
2019-03-11 15:18:35 -05:00
|
|
|
LL | x;
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^ value used here after move
|
|
|
|
|
|
|
|
error[E0382]: use of moved value: `x`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/ref-suggestion.rs:16:5
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | (Some(y), ()) => {},
|
|
|
|
| - value moved here
|
|
|
|
...
|
2019-03-11 15:18:35 -05:00
|
|
|
LL | x;
|
2019-02-20 10:54:10 -06:00
|
|
|
| ^ value used here after partial move
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
= note: move occurs because value has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|