1 error: cannot move out of value because it is borrowed
2 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:12:14
4 LL | Some(ref _y @ _z) => {}
7 | | value moved into `_z` here
8 | value borrowed, by `_y`, here
10 error: borrow of moved value
11 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:19:14
13 LL | Some(_z @ ref _y) => {}
16 | | value borrowed here after move
17 | value moved into `_z` here
18 | move occurs because `_z` has type `X` which does not implement the `Copy` trait
20 help: borrow this binding in the pattern to avoid moving the value
22 LL | Some(ref _z @ ref _y) => {}
25 error: cannot move out of value because it is borrowed
26 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:26:14
28 LL | Some(ref mut _y @ _z) => {}
31 | | value moved into `_z` here
32 | value borrowed, by `_y`, here
34 error: borrow of moved value
35 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:33:14
37 LL | Some(_z @ ref mut _y) => {}
40 | | value borrowed here after move
41 | value moved into `_z` here
42 | move occurs because `_z` has type `X` which does not implement the `Copy` trait
44 help: borrow this binding in the pattern to avoid moving the value
46 LL | Some(ref _z @ ref mut _y) => {}
49 error[E0382]: borrow of moved value
50 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:12:14
52 LL | Some(ref _y @ _z) => {}
53 | ^^^^^^ -- value moved here
55 | value borrowed here after move
57 = note: move occurs because value has type `X`, which does not implement the `Copy` trait
58 help: borrow this binding in the pattern to avoid moving the value
60 LL | Some(ref _y @ ref _z) => {}
63 error[E0382]: borrow of moved value
64 --> $DIR/bind-by-move-neither-can-live-while-the-other-survives-1.rs:26:14
66 LL | Some(ref mut _y @ _z) => {}
67 | ^^^^^^^^^^ -- value moved here
69 | value borrowed here after move
71 = note: move occurs because value has type `X`, which does not implement the `Copy` trait
72 help: borrow this binding in the pattern to avoid moving the value
74 LL | Some(ref mut _y @ ref _z) => {}
77 error: aborting due to 6 previous errors
79 For more information about this error, try `rustc --explain E0382`.