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
14 help: consider cloning the value if the performance cost is acceptable
18 help: consider further restricting this bound
20 LL | fn move_then_borrow<T: Not<Output=T> + Clone + Copy>(x: T) {
23 error[E0505]: cannot move out of `x` because it is borrowed
24 --> $DIR/unop-move-semantics.rs:15:6
27 | -- borrow of `x` occurs here
30 | ^ move out of `x` occurs here
32 LL | use_mut(n); use_imm(m);
33 | - borrow later used here
35 error[E0505]: cannot move out of `y` because it is borrowed
36 --> $DIR/unop-move-semantics.rs:17:6
39 | ------ borrow of `y` occurs here
42 | ^ move out of `y` occurs here
43 LL | use_mut(n); use_imm(m);
44 | - borrow later used here
46 error[E0507]: cannot move out of `*m` which is behind a mutable reference
47 --> $DIR/unop-move-semantics.rs:24:6
52 | |move occurs because `*m` has type `T`, which does not implement the `Copy` trait
53 | `*m` moved due to usage in operator
55 note: calling this operator moves the left-hand side
56 --> $SRC_DIR/core/src/ops/bit.rs:LL:COL
58 error[E0507]: cannot move out of `*n` which is behind a shared reference
59 --> $DIR/unop-move-semantics.rs:26:6
64 | |move occurs because `*n` has type `T`, which does not implement the `Copy` trait
65 | `*n` moved due to usage in operator
67 error: aborting due to 5 previous errors
69 Some errors have detailed explanations: E0382, E0505, E0507.
70 For more information about an error, try `rustc --explain E0382`.