summary refs log tree commit diff
path: root/src/test/ui/codemap_tests/tab_3.stderr
blob: 97816a76004d09cdc9c6d79549b0118826dd7bb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0382]: borrow of moved value: `some_vec`
  --> $DIR/tab_3.rs:7:20
   |
LL |     let some_vec = vec!["hi"];
   |         -------- move occurs because `some_vec` has type `std::vec::Vec<&str>`, which does not implement the `Copy` trait
LL |     some_vec.into_iter();
   |     -------- value moved here
LL |     {
LL |         println!("{:?}", some_vec);
   |                          ^^^^^^^^ value borrowed here after move

error: aborting due to previous error

For more information about this error, try `rustc --explain E0382`.