|
1 |
| -error[E0382]: use of partially moved value: `maybe` |
2 |
| - --> $DIR/issue-41962.rs:15:30 |
| 1 | +error[E0382]: use of partially moved value: `maybe` (Ast) |
| 2 | + --> $DIR/issue-41962.rs:17:30 |
3 | 3 | |
|
4 |
| -15 | if let Some(thing) = maybe { |
| 4 | +17 | if let Some(thing) = maybe { |
5 | 5 | | ----- ^^^^^ value used here after move
|
6 | 6 | | |
|
7 | 7 | | value moved here
|
8 | 8 | |
|
9 | 9 | = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
10 | 10 |
|
11 |
| -error[E0382]: use of moved value: `(maybe as std::prelude::v1::Some).0` |
12 |
| - --> $DIR/issue-41962.rs:15:21 |
| 11 | +error[E0382]: use of moved value: `(maybe as std::prelude::v1::Some).0` (Ast) |
| 12 | + --> $DIR/issue-41962.rs:17:21 |
13 | 13 | |
|
14 |
| -15 | if let Some(thing) = maybe { |
| 14 | +17 | if let Some(thing) = maybe { |
15 | 15 | | ^^^^^ value moved here in previous iteration of loop
|
16 | 16 | |
|
17 | 17 | = note: move occurs because the value has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait
|
18 | 18 |
|
19 |
| -error: aborting due to 2 previous errors |
| 19 | +error[E0382]: use of moved value: `maybe` (Mir) |
| 20 | + --> $DIR/issue-41962.rs:17:16 |
| 21 | + | |
| 22 | +17 | if let Some(thing) = maybe { |
| 23 | + | ^^^^^-----^ |
| 24 | + | | | |
| 25 | + | | value moved here |
| 26 | + | value used here after move |
| 27 | + | |
| 28 | + = note: move occurs because `maybe` has type `std::option::Option<std::vec::Vec<bool>>`, which does not implement the `Copy` trait |
| 29 | + |
| 30 | +error[E0382]: use of moved value: `maybe.0` (Mir) |
| 31 | + --> $DIR/issue-41962.rs:17:21 |
| 32 | + | |
| 33 | +17 | if let Some(thing) = maybe { |
| 34 | + | ^^^^^ |
| 35 | + | | |
| 36 | + | value used here after move |
| 37 | + | value moved here in previous iteration of loop |
| 38 | + | |
| 39 | + = note: move occurs because `maybe.0` has type `std::vec::Vec<bool>`, which does not implement the `Copy` trait |
| 40 | + |
| 41 | +error: aborting due to 4 previous errors |
20 | 42 |
|
0 commit comments