rust/tests/ui/borrowck/issue-41962.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
551 B
Plaintext
Raw Normal View History

2019-05-02 22:34:15 +00:00
error[E0382]: use of moved value
--> $DIR/issue-41962.rs:5:21
|
LL | if let Some(thing) = maybe {
| ^^^^^ value moved here, in previous iteration of loop
|
= note: move occurs because value has type `Vec<bool>`, which does not implement the `Copy` trait
help: borrow this binding in the pattern to avoid moving the value
|
LL | if let Some(ref thing) = maybe {
| +++
2019-05-02 22:34:15 +00:00
error: aborting due to 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`.