]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-41962.stderr
fd4d318b5ddf1cea094b9bb9e73933e9febce6dc
[rust.git] / src / test / ui / borrowck / issue-41962.stderr
1 error[E0382]: use of partially moved value: `maybe` (Ast)
2   --> $DIR/issue-41962.rs:7:30
3    |
4 LL |         if let Some(thing) = maybe {
5    |                     -----    ^^^^^ value used here after move
6    |                     |
7    |                     value moved here
8    |
9    = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `(maybe as std::prelude::v1::Some).0` (Ast)
12   --> $DIR/issue-41962.rs:7:21
13    |
14 LL |         if let Some(thing) = maybe {
15    |                     ^^^^^ value moved here in previous iteration of loop
16    |
17    = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
18
19 error[E0382]: use of moved value (Mir)
20   --> $DIR/issue-41962.rs:7:21
21    |
22 LL |         if let Some(thing) = maybe {
23    |                     ^^^^^ value moved here, in previous iteration of loop
24    |
25    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
26
27 error: aborting due to 3 previous errors
28
29 For more information about this error, try `rustc --explain E0382`.