]> git.lizzy.rs Git - rust.git/blob - src/test/ui/borrowck/issue-41962.stderr
Auto merge of #52925 - RalfJung:sanity_check, r=oli-obk
[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:16
21    |
22 LL |         if let Some(thing) = maybe {
23    |                ^^^^^-----^
24    |                |    |
25    |                |    value moved here
26    |                value used here after move
27    |
28    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
29
30 error[E0382]: use of moved value (Mir)
31   --> $DIR/issue-41962.rs:17:21
32    |
33 LL |         if let Some(thing) = maybe {
34    |                     ^^^^^ value moved here in previous iteration of loop
35    |
36    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
37
38 error[E0382]: use of moved value: `maybe` (Mir)
39   --> $DIR/issue-41962.rs:17:30
40    |
41 LL |         if let Some(thing) = maybe {
42    |                     -----    ^^^^^ value used here after move
43    |                     |
44    |                     value moved here
45    |
46    = note: move occurs because value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
47
48 error[E0382]: borrow of moved value: `maybe` (Mir)
49   --> $DIR/issue-41962.rs:17:30
50    |
51 LL |         if let Some(thing) = maybe {
52    |                     -----    ^^^^^ value borrowed here after move
53    |                     |
54    |                     value moved here
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`.