2019-04-22 02:40:08 -05:00
|
|
|
error[E0382]: use of moved value
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/issue-53807.rs:4:21
|
2018-09-06 08:48:33 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(thing) = maybe {
|
2019-04-22 02:40:08 -05:00
|
|
|
| ^^^^^ value moved here, in previous iteration of loop
|
2018-09-06 08:48:33 -05:00
|
|
|
|
|
2020-09-02 02:40:56 -05:00
|
|
|
= note: move occurs because value has type `Vec<bool>`, which does not implement the `Copy` trait
|
2020-06-20 00:45:09 -05:00
|
|
|
help: borrow this field in the pattern to avoid moving `maybe.0`
|
|
|
|
|
|
|
|
|
LL | if let Some(ref thing) = maybe {
|
|
|
|
| ^^^
|
2018-09-06 08:48:33 -05:00
|
|
|
|
2019-04-22 02:40:08 -05:00
|
|
|
error: aborting due to previous error
|
2018-09-06 08:48:33 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0382`.
|