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
7 | -- `x` moved due to usage in operator
10 | ^^^^^^^^^ value borrowed here after move
12 note: calling this operator moves the left-hand side
13 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
15 LL | fn not(self) -> Self::Output;
17 help: consider further restricting this bound
19 LL | fn move_then_borrow<T: Not<Output=T> + Clone + Copy>(x: T) {
22 error[E0505]: cannot move out of `x` because it is borrowed
23 --> $DIR/unop-move-semantics.rs:15:6
26 | -- borrow of `x` occurs here
29 | ^ move out of `x` occurs here
31 LL | use_mut(n); use_imm(m);
32 | - borrow later used here
34 error[E0505]: cannot move out of `y` because it is borrowed
35 --> $DIR/unop-move-semantics.rs:17:6
38 | ------ borrow of `y` occurs here
41 | ^ move out of `y` occurs here
42 LL | use_mut(n); use_imm(m);
43 | - borrow later used here
45 error[E0507]: cannot move out of `*m` which is behind a mutable reference
46 --> $DIR/unop-move-semantics.rs:24:6
49 | ^^ move occurs because `*m` has type `T`, which does not implement the `Copy` trait
51 error[E0507]: cannot move out of `*n` which is behind a shared reference
52 --> $DIR/unop-move-semantics.rs:26:6
55 | ^^ move occurs because `*n` has type `T`, which does not implement the `Copy` trait
57 error: aborting due to 5 previous errors
59 Some errors have detailed explanations: E0382, E0505, E0507.
60 For more information about an error, try `rustc --explain E0382`.