]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/issue-41962.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / borrowck / issue-41962.stderr
1 error[E0382]: use of moved value
2   --> $DIR/issue-41962.rs:5: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`.