1 error[E0382]: borrow of moved value: `x`
2 --> $DIR/unop-move-semantics.rs:18:5
7 LL | x.clone(); //~ ERROR: use of moved value
8 | ^ value borrowed here after move
10 = note: move occurs because `x` has type `T`, which does not implement the `Copy` trait
12 error[E0507]: cannot move out of borrowed content
13 --> $DIR/unop-move-semantics.rs:34:6
15 LL | !*m; //~ ERROR: cannot move out of borrowed content
16 | ^^ cannot move out of borrowed content
18 error[E0507]: cannot move out of borrowed content
19 --> $DIR/unop-move-semantics.rs:36:6
21 LL | !*n; //~ ERROR: cannot move out of borrowed content
22 | ^^ cannot move out of borrowed content
24 error[E0507]: cannot move out of `*n` which is behind a `&` reference
25 --> $DIR/unop-move-semantics.rs:36:6
28 | -- help: consider changing this to be a mutable reference: `&mut y`
30 LL | !*n; //~ ERROR: cannot move out of borrowed content
33 | cannot move out of `*n` which is behind a `&` reference
34 | `n` is a `&` reference, so the data it refers to cannot be moved
36 error: aborting due to 4 previous errors
38 Some errors occurred: E0382, E0507.
39 For more information about an error, try `rustc --explain E0382`.