1 error[E0507]: cannot move out of `selection.1` which is behind a shared reference
2 --> $DIR/option-content-move.rs:9:20
4 LL | if selection.1.unwrap().contains(selection.0) {
5 | ^^^^^^^^^^^ -------- `selection.1` moved due to this method call
7 | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
8 | move occurs because `selection.1` has type `Option<String>`, which does not implement the `Copy` trait
10 note: this function takes ownership of the receiver `self`, which moves `selection.1`
11 --> $SRC_DIR/core/src/option.rs:LL:COL
13 LL | pub const fn unwrap(self) -> T {
16 error[E0507]: cannot move out of `selection.1` which is behind a shared reference
17 --> $DIR/option-content-move.rs:27:20
19 LL | if selection.1.unwrap().contains(selection.0) {
20 | ^^^^^^^^^^^ -------- `selection.1` moved due to this method call
22 | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents
23 | move occurs because `selection.1` has type `Result<String, String>`, which does not implement the `Copy` trait
25 note: this function takes ownership of the receiver `self`, which moves `selection.1`
26 --> $SRC_DIR/core/src/result.rs:LL:COL
28 LL | pub fn unwrap(self) -> T
31 error: aborting due to 2 previous errors
33 For more information about this error, try `rustc --explain E0507`.