1 error[E0382]: use of moved value: `x`
2 --> $DIR/binop-move-semantics.rs:8:5
4 LL | fn double_move<T: Add<Output=()>>(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 used here after move
14 error[E0382]: borrow of moved value: `x`
15 --> $DIR/binop-move-semantics.rs:14:5
17 LL | fn move_then_borrow<T: Add<Output=()> + Clone>(x: T) {
18 | - - move occurs because `x` has type `T`, which does not implement the `Copy` trait
20 | consider adding a `Copy` constraint to this type argument
25 | ^ value borrowed here after move
27 error[E0505]: cannot move out of `x` because it is borrowed
28 --> $DIR/binop-move-semantics.rs:21:5
31 | -- borrow of `x` occurs here
34 | ^ move out of `x` occurs here
36 LL | use_mut(n); use_imm(m);
37 | - borrow later used here
39 error[E0505]: cannot move out of `y` because it is borrowed
40 --> $DIR/binop-move-semantics.rs:23:5
43 | ------ borrow of `y` occurs here
46 | ^ move out of `y` occurs here
47 LL | use_mut(n); use_imm(m);
48 | - borrow later used here
50 error[E0507]: cannot move out of borrowed content
51 --> $DIR/binop-move-semantics.rs:30:5
54 | ^^ cannot move out of borrowed content
56 error[E0507]: cannot move out of borrowed content
57 --> $DIR/binop-move-semantics.rs:32:5
60 | ^^ cannot move out of borrowed content
62 error[E0502]: cannot borrow `f` as immutable because it is also borrowed as mutable
63 --> $DIR/binop-move-semantics.rs:54:5
68 | _____mutable borrow occurs here
74 | |mutable borrow later used here
75 | immutable borrow occurs here
77 error[E0502]: cannot borrow `f` as mutable because it is also borrowed as immutable
78 --> $DIR/binop-move-semantics.rs:62:5
83 | _____immutable borrow occurs here
89 | | immutable borrow later used here
90 | mutable borrow occurs here
92 error: aborting due to 8 previous errors
94 Some errors have detailed explanations: E0382, E0502, E0505, E0507.
95 For more information about an error, try `rustc --explain E0382`.