]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/issue-41962.stderr
New upstream version 1.46.0~beta.2+dfsg1
[rustc.git] / src / test / ui / borrowck / issue-41962.stderr
CommitLineData
48663c56
XL
1error[E0382]: use of moved value
2 --> $DIR/issue-41962.rs:5:21
94b46f34 3 |
8faf50e0 4LL | if let Some(thing) = maybe {
0bf4aa26 5 | ^^^^^ value moved here, in previous iteration of loop
2c00a5a8 6 |
8faf50e0 7 = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
f035d41b
XL
8help: borrow this field in the pattern to avoid moving `maybe.0`
9 |
10LL | if let Some(ref thing) = maybe {
11 | ^^^
2c00a5a8 12
48663c56 13error: aborting due to previous error
2c00a5a8 14
0531ce1d 15For more information about this error, try `rustc --explain E0382`.