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