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