]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-41962.stderr
Auto merge of #52764 - sinkuu:cleanup, r=nikomatsakis
[rust.git] / src / test / ui / borrowck / issue-41962.stderr
1 error[E0382]: use of partially moved value: `maybe` (Ast)
2   --> $DIR/issue-41962.rs:17: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:17: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: `maybe` (Mir)
20   --> $DIR/issue-41962.rs:17:30
21    |
22 LL |         if let Some(thing) = maybe {
23    |                     -----    ^^^^^ value used here after move
24    |                     |
25    |                     value moved here
26    |
27    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
28
29 error[E0382]: borrow of moved value: `maybe` (Mir)
30   --> $DIR/issue-41962.rs:17:30
31    |
32 LL |         if let Some(thing) = maybe {
33    |                     -----    ^^^^^ value borrowed here after move
34    |                     |
35    |                     value moved here
36    |
37    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
38
39 error[E0382]: use of moved value: `maybe` (Mir)
40   --> $DIR/issue-41962.rs:17:16
41    |
42 LL |         if let Some(thing) = maybe {
43    |                ^^^^^-----^
44    |                |    |
45    |                |    value moved here
46    |                value used here after move
47    |
48    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
49
50 error[E0382]: use of moved value (Mir)
51   --> $DIR/issue-41962.rs:17:21
52    |
53 LL |         if let Some(thing) = maybe {
54    |                     ^^^^^ value moved here in previous iteration of loop
55    |
56    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
57
58 error: aborting due to 6 previous errors
59
60 For more information about this error, try `rustc --explain E0382`.