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 | consider adding a `Copy` constraint to this type argument
12 | ^ value borrowed here after move
14 error[E0505]: cannot move out of `x` because it is borrowed
15 --> $DIR/unop-move-semantics.rs:15:6
18 | -- borrow of `x` occurs here
21 | ^ move out of `x` occurs here
23 LL | use_mut(n); use_imm(m);
24 | - borrow later used here
26 error[E0505]: cannot move out of `y` because it is borrowed
27 --> $DIR/unop-move-semantics.rs:17:6
30 | ------ borrow of `y` occurs here
33 | ^ move out of `y` occurs here
34 LL | use_mut(n); use_imm(m);
35 | - borrow later used here
37 error[E0507]: cannot move out of borrowed content
38 --> $DIR/unop-move-semantics.rs:24:6
41 | ^^ cannot move out of borrowed content
43 error[E0507]: cannot move out of borrowed content
44 --> $DIR/unop-move-semantics.rs:26:6
47 | ^^ cannot move out of borrowed content
49 error: aborting due to 5 previous errors
51 Some errors occurred: E0382, E0505, E0507.
52 For more information about an error, try `rustc --explain E0382`.