]> git.lizzy.rs Git - rust.git/blob - tests/ui/nll/issue-53807.stderr
Rollup merge of #106397 - compiler-errors:new-solver-impl-wc, r=lcnr
[rust.git] / tests / ui / nll / issue-53807.stderr
1 error[E0382]: use of moved value
2   --> $DIR/issue-53807.rs:4:21
3    |
4 LL |         if let Some(thing) = maybe {
5    |                     ^^^^^ value moved here, in previous iteration of loop
6    |
7    = note: move occurs because value has type `Vec<bool>`, which does not implement the `Copy` trait
8 help: borrow this binding in the pattern to avoid moving the value
9    |
10 LL |         if let Some(ref thing) = maybe {
11    |                     +++
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0382`.