]>
Commit | Line | Data |
---|---|---|
48663c56 | 1 | error[E0382]: use of moved value |
0731742a | 2 | --> $DIR/issue-53807.rs:4:21 |
0bf4aa26 XL |
3 | | |
4 | LL | if let Some(thing) = maybe { | |
48663c56 | 5 | | ^^^^^ value moved here, in previous iteration of loop |
0bf4aa26 | 6 | | |
1b1a35ee | 7 | = note: move occurs because value has type `Vec<bool>`, which does not implement the `Copy` trait |
f035d41b XL |
8 | help: borrow this field in the pattern to avoid moving `maybe.0` |
9 | | | |
10 | LL | if let Some(ref thing) = maybe { | |
11 | | ^^^ | |
0bf4aa26 | 12 | |
48663c56 | 13 | error: aborting due to previous error |
0bf4aa26 XL |
14 | |
15 | For more information about this error, try `rustc --explain E0382`. |