1 error[E0505]: cannot move out of `s` because it is borrowed
2 --> $DIR/btreemap_dropck.rs:15:10
4 LL | let s = String::from("Hello World!");
5 | - binding `s` declared here
6 LL | let _map = BTreeMap::from_iter([((), PrintOnDrop(&s))]);
7 | -- borrow of `s` occurs here
9 | ^ move out of `s` occurs here
11 | - borrow might be used here, when `_map` is dropped and runs the `Drop` code for type `BTreeMap`
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0505`.