|
1 | 1 | warning: the feature `bindings_after_at` is incomplete and may cause the compiler to crash
|
2 |
| - --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:1:12 |
| 2 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:5:12 |
3 | 3 | |
|
4 | 4 | LL | #![feature(bindings_after_at)]
|
5 | 5 | | ^^^^^^^^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `#[warn(incomplete_features)]` on by default
|
8 | 8 |
|
9 | 9 | error[E0009]: cannot bind by-move and by-ref in the same pattern
|
10 |
| - --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:9:23 |
| 10 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:13:23 |
11 | 11 | |
|
12 | 12 | LL | Some(ref _y @ _z) => { },
|
13 | 13 | | ---------^^
|
14 | 14 | | | |
|
15 | 15 | | | by-move pattern here
|
16 | 16 | | by-ref pattern here
|
17 | 17 |
|
18 |
| -error: aborting due to previous error |
| 18 | +error[E0007]: cannot bind by-move with sub-bindings |
| 19 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:19:14 |
| 20 | + | |
| 21 | +LL | Some(_z @ ref _y) => { }, |
| 22 | + | ^^^^^^^^^^^ binds an already bound by-move value by moving it |
| 23 | + |
| 24 | +error[E0009]: cannot bind by-move and by-ref in the same pattern |
| 25 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:26:27 |
| 26 | + | |
| 27 | +LL | Some(ref mut _y @ _z) => { }, |
| 28 | + | -------------^^ |
| 29 | + | | | |
| 30 | + | | by-move pattern here |
| 31 | + | by-ref pattern here |
| 32 | + |
| 33 | +error[E0007]: cannot bind by-move with sub-bindings |
| 34 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:32:14 |
| 35 | + | |
| 36 | +LL | Some(_z @ ref mut _y) => { }, |
| 37 | + | ^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it |
| 38 | + |
| 39 | +error[E0382]: borrow of moved value |
| 40 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:19:19 |
| 41 | + | |
| 42 | +LL | Some(_z @ ref _y) => { }, |
| 43 | + | -----^^^^^^ |
| 44 | + | | | |
| 45 | + | | value borrowed here after move |
| 46 | + | value moved here |
| 47 | + | |
| 48 | + = note: move occurs because value has type `X`, which does not implement the `Copy` trait |
| 49 | + |
| 50 | +error[E0382]: borrow of moved value |
| 51 | + --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:32:19 |
| 52 | + | |
| 53 | +LL | Some(_z @ ref mut _y) => { }, |
| 54 | + | -----^^^^^^^^^^ |
| 55 | + | | | |
| 56 | + | | value borrowed here after move |
| 57 | + | value moved here |
| 58 | + | |
| 59 | + = note: move occurs because value has type `X`, which does not implement the `Copy` trait |
| 60 | + |
| 61 | +error: aborting due to 6 previous errors |
19 | 62 |
|
20 |
| -For more information about this error, try `rustc --explain E0009`. |
| 63 | +Some errors have detailed explanations: E0007, E0009, E0382. |
| 64 | +For more information about an error, try `rustc --explain E0007`. |
0 commit comments