2017-09-07 01:47:13 -05:00
|
|
|
error[E0382]: use of moved value: `some_vec`
|
|
|
|
--> $DIR/tab_3.rs:17:20
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | some_vec.into_iter();
|
2017-11-13 00:06:00 -06:00
|
|
|
| -------- value moved here
|
2018-02-24 17:01:39 -06:00
|
|
|
LL | {
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | println!("{:?}", some_vec); //~ ERROR use of moved
|
2017-11-13 00:06:00 -06:00
|
|
|
| ^^^^^^^^ value used here after move
|
2017-09-07 01:47:13 -05:00
|
|
|
|
|
|
|
|
= note: move occurs because `some_vec` has type `std::vec::Vec<&str>`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0382"
|