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 | let mut s = "hello".to_string();
29 | ----- move occurs because `s` has type `String`, which does not implement the `Copy` trait
31 LL | println!("{}", f[s]);
35 | ^ value used here after move
37 error: aborting due to 3 previous errors
39 Some errors have detailed explanations: E0382, E0505.
40 For more information about an error, try `rustc --explain E0382`.