2019-05-02 17:34:15 -05:00
|
|
|
error[E0382]: use of moved value
|
|
|
|
--> $DIR/issue-41962.rs:5:21
|
2018-05-09 10:17:58 -05:00
|
|
|
|
|
2018-07-22 15:13:18 -05:00
|
|
|
LL | if let Some(thing) = maybe {
|
2018-09-28 11:21:10 -05:00
|
|
|
| ^^^^^ value moved here, in previous iteration of loop
|
2018-05-09 10:17:58 -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
|
2022-11-02 23:22:24 -05:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
2020-06-20 00:45:09 -05:00
|
|
|
|
|
|
|
|
LL | if let Some(ref thing) = maybe {
|
2021-06-21 21:07:19 -05:00
|
|
|
| +++
|
2018-05-09 10:17:58 -05:00
|
|
|
|
2019-05-02 17:34:15 -05:00
|
|
|
error: aborting due to previous error
|
2017-09-06 01:36:34 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0382`.
|