1 error[E0382]: borrow of moved value: `x`
2 --> $DIR/unop-move-semantics.rs:8:5
4 LL | fn move_then_borrow<T: Not<Output=T> + Clone>(x: T) {
5 | - move occurs because `x` has type `T`, which does not implement the `Copy` trait
10 | ^ value borrowed here after move
12 help: consider further restricting this bound
14 LL | fn move_then_borrow<T: Not<Output=T> + Clone + Copy>(x: T) {
17 error[E0505]: cannot move out of `x` because it is borrowed
18 --> $DIR/unop-move-semantics.rs:15:6
21 | -- borrow of `x` occurs here
24 | ^ move out of `x` occurs here
26 LL | use_mut(n); use_imm(m);
27 | - borrow later used here
29 error[E0505]: cannot move out of `y` because it is borrowed
30 --> $DIR/unop-move-semantics.rs:17:6
33 | ------ borrow of `y` occurs here
36 | ^ move out of `y` occurs here
37 LL | use_mut(n); use_imm(m);
38 | - borrow later used here
40 error[E0507]: cannot move out of `*m` which is behind a mutable reference
41 --> $DIR/unop-move-semantics.rs:24:6
44 | ^^ move occurs because `*m` has type `T`, which does not implement the `Copy` trait
46 error[E0507]: cannot move out of `*n` which is behind a shared reference
47 --> $DIR/unop-move-semantics.rs:26:6
50 | ^^ move occurs because `*n` has type `T`, which does not implement the `Copy` trait
52 error: aborting due to 5 previous errors
54 Some errors have detailed explanations: E0382, E0505, E0507.
55 For more information about an error, try `rustc --explain E0382`.