]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | error: cannot move out of value because it is borrowed |
2 | --> $DIR/default-binding-modes-both-sides-independent.rs:28:9 | |
dfeec247 XL |
3 | | |
4 | LL | let ref a @ b = NotCopy; | |
74b04a01 | 5 | | -----^^^- |
dfeec247 | 6 | | | | |
74b04a01 XL |
7 | | | value moved into `b` here |
8 | | value borrowed, by `a`, here | |
dfeec247 | 9 | |
74b04a01 XL |
10 | error: cannot move out of value because it is borrowed |
11 | --> $DIR/default-binding-modes-both-sides-independent.rs:31:9 | |
dfeec247 XL |
12 | | |
13 | LL | let ref mut a @ b = NotCopy; | |
74b04a01 | 14 | | ---------^^^- |
dfeec247 | 15 | | | | |
74b04a01 XL |
16 | | | value moved into `b` here |
17 | | value borrowed, by `a`, here | |
18 | ||
19 | error: cannot move out of value because it is borrowed | |
20 | --> $DIR/default-binding-modes-both-sides-independent.rs:36:12 | |
21 | | | |
22 | LL | Ok(ref a @ b) | Err(b @ ref a) => { | |
23 | | -----^^^- | |
24 | | | | | |
25 | | | value moved into `b` here | |
26 | | value borrowed, by `a`, here | |
dfeec247 | 27 | |
74b04a01 XL |
28 | error: borrow of moved value |
29 | --> $DIR/default-binding-modes-both-sides-independent.rs:36:29 | |
dfeec247 | 30 | | |
74b04a01 XL |
31 | LL | Ok(ref a @ b) | Err(b @ ref a) => { |
32 | | -^^^----- | |
33 | | | | | |
34 | | | value borrowed here after move | |
35 | | value moved into `b` here | |
36 | | move occurs because `b` has type `main::NotCopy` which does not implement the `Copy` trait | |
dfeec247 | 37 | |
74b04a01 XL |
38 | error: cannot move out of value because it is borrowed |
39 | --> $DIR/default-binding-modes-both-sides-independent.rs:44:9 | |
dfeec247 | 40 | | |
74b04a01 XL |
41 | LL | ref a @ b => { |
42 | | -----^^^- | |
dfeec247 | 43 | | | | |
74b04a01 XL |
44 | | | value moved into `b` here |
45 | | value borrowed, by `a`, here | |
46 | ||
ba9703b0 | 47 | error[E0505]: cannot move out of value because it is borrowed |
74b04a01 XL |
48 | --> $DIR/default-binding-modes-both-sides-independent.rs:31:21 |
49 | | | |
50 | LL | let ref mut a @ b = NotCopy; | |
51 | | ------------^ | |
52 | | | | | |
53 | | | move out of value occurs here | |
54 | | borrow of value occurs here | |
55 | LL | | |
56 | LL | let _a: &NotCopy = a; | |
57 | | - borrow later used here | |
dfeec247 | 58 | |
74b04a01 | 59 | error: aborting due to 6 previous errors |
dfeec247 | 60 | |
74b04a01 | 61 | For more information about this error, try `rustc --explain E0505`. |