2019-05-02 22:34:15 +00:00
|
|
|
error[E0382]: use of moved value
|
|
|
|
--> $DIR/issue-41962.rs:5:21
|
2018-05-09 15:17:58 +00:00
|
|
|
|
|
2018-07-22 20:13:18 +00:00
|
|
|
LL | if let Some(thing) = maybe {
|
2018-09-28 16:21:10 +00:00
|
|
|
| ^^^^^ value moved here, in previous iteration of loop
|
2018-05-09 15:17:58 +00:00
|
|
|
|
|
2020-09-02 07:40:56 +00:00
|
|
|
= note: move occurs because value has type `Vec<bool>`, which does not implement the `Copy` trait
|
2022-11-03 04:22:24 +00:00
|
|
|
help: borrow this binding in the pattern to avoid moving the value
|
2020-06-20 05:45:09 +00:00
|
|
|
|
|
|
|
|
LL | if let Some(ref thing) = maybe {
|
2021-06-22 02:07:19 +00:00
|
|
|
| +++
|
2018-05-09 15:17:58 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-09-06 06:36:34 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0382`.
|