1 error[E0505]: cannot move out of `s` because it is borrowed
2 --> $DIR/borrowck-overloaded-index-move-index.rs:50:22
5 | ------ borrow of `s` occurs here
7 LL | println!("{}", f[s]);
8 | ^ move out of `s` occurs here
11 | -- borrow later used here
13 error[E0505]: cannot move out of `s` because it is borrowed
14 --> $DIR/borrowck-overloaded-index-move-index.rs:53:7
17 | ------ borrow of `s` occurs here
20 | ^ move out of `s` occurs here
23 | -- borrow later used here
25 error[E0382]: use of moved value: `s`
26 --> $DIR/borrowck-overloaded-index-move-index.rs:53:7
28 LL | println!("{}", f[s]);
32 | ^ value used here after move
34 = note: move occurs because `s` has type `std::string::String`, which does not implement the `Copy` trait
36 error: aborting due to 3 previous errors
38 Some errors occurred: E0382, E0505.
39 For more information about an error, try `rustc --explain E0382`.