]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/option-content-move-from-tuple-match.stderr
Auto merge of #93718 - thomcc:used-macho, r=pnkfelix
[rust.git] / src / test / ui / suggestions / option-content-move-from-tuple-match.stderr
1 error[E0507]: cannot move out of a shared reference
2   --> $DIR/option-content-move-from-tuple-match.rs:2:11
3    |
4 LL |     match (a, b) {
5    |           ^^^^^^
6 LL |
7 LL |         (None, &c) => &c.unwrap(),
8    |                 -
9    |                 |
10    |                 data moved here
11    |                 move occurs because `c` has type `Option<String>`, which does not implement the `Copy` trait
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0507`.