2019-11-11 04:39:52 -06:00
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:12:23
|
2019-11-11 04:39:52 -06:00
|
|
|
|
|
|
|
|
LL | Some(ref _y @ _z) => { },
|
|
|
|
| ---------^^
|
|
|
|
| | |
|
|
|
|
| | by-move pattern here
|
2019-12-14 11:20:13 -06:00
|
|
|
| by-ref pattern here
|
2019-11-11 04:39:52 -06:00
|
|
|
|
2019-12-14 21:09:47 -06:00
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:18:14
|
2019-12-14 21:09:47 -06:00
|
|
|
|
|
|
|
|
LL | Some(_z @ ref _y) => { },
|
|
|
|
| ^^^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0009]: cannot bind by-move and by-ref in the same pattern
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:25:27
|
2019-12-14 21:09:47 -06:00
|
|
|
|
|
|
|
|
LL | Some(ref mut _y @ _z) => { },
|
|
|
|
| -------------^^
|
|
|
|
| | |
|
|
|
|
| | by-move pattern here
|
|
|
|
| by-ref pattern here
|
|
|
|
|
|
|
|
error[E0007]: cannot bind by-move with sub-bindings
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:31:14
|
2019-12-14 21:09:47 -06:00
|
|
|
|
|
|
|
|
LL | Some(_z @ ref mut _y) => { },
|
|
|
|
| ^^^^^^^^^^^^^^^ binds an already bound by-move value by moving it
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:18:19
|
2019-12-14 21:09:47 -06:00
|
|
|
|
|
|
|
|
LL | Some(_z @ ref _y) => { },
|
|
|
|
| -----^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
|
= note: move occurs because value has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error[E0382]: borrow of moved value
|
2019-12-14 22:06:54 -06:00
|
|
|
--> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:31:19
|
2019-12-14 21:09:47 -06:00
|
|
|
|
|
|
|
|
LL | Some(_z @ ref mut _y) => { },
|
|
|
|
| -----^^^^^^^^^^
|
|
|
|
| | |
|
|
|
|
| | value borrowed here after move
|
|
|
|
| value moved here
|
|
|
|
|
|
|
|
|
= note: move occurs because value has type `X`, which does not implement the `Copy` trait
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2019-11-11 04:39:52 -06:00
|
|
|
|
2019-12-14 21:09:47 -06:00
|
|
|
Some errors have detailed explanations: E0007, E0009, E0382.
|
|
|
|
For more information about an error, try `rustc --explain E0007`.
|