|
1 |
| -error[E0382]: use of moved value: `x` |
2 |
| - --> $DIR/move-guard-if-let-chain.rs:12:23 |
3 |
| - | |
4 |
| -LL | let x: Box<_> = Box::new(1); |
5 |
| - | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait |
6 |
| -... |
7 |
| -LL | (1, 2) if let y = x && c => (), |
8 |
| - | - value moved here |
9 |
| -LL | (1, 2) if let z = x => (), |
10 |
| - | ^ value used here after move |
11 |
| - | |
12 |
| -help: borrow this binding in the pattern to avoid moving the value |
13 |
| - | |
14 |
| -LL | (1, 2) if let ref y = x && c => (), |
15 |
| - | +++ |
| 1 | +error: Option 'edition' given more than once |
16 | 2 |
|
17 |
| -error[E0382]: use of moved value: `x` |
18 |
| - --> $DIR/move-guard-if-let-chain.rs:36:23 |
19 |
| - | |
20 |
| -LL | let x: Box<_> = Box::new(1); |
21 |
| - | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait |
22 |
| -... |
23 |
| -LL | (1, _) if let y = x && c => (), |
24 |
| - | - value moved here |
25 |
| -LL | (_, 2) if let z = x => (), |
26 |
| - | ^ value used here after move |
27 |
| - | |
28 |
| -help: borrow this binding in the pattern to avoid moving the value |
29 |
| - | |
30 |
| -LL | (1, _) if let ref y = x && c => (), |
31 |
| - | +++ |
32 |
| - |
33 |
| -error[E0382]: use of moved value: `x` |
34 |
| - --> $DIR/move-guard-if-let-chain.rs:59:32 |
35 |
| - | |
36 |
| -LL | let x: Box<_> = Box::new(1); |
37 |
| - | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait |
38 |
| -... |
39 |
| -LL | (1, _) | (_, 2) if let y = x && c => (), |
40 |
| - | ^ value used here after move |
41 |
| - | |
42 |
| -help: borrow this binding in the pattern to avoid moving the value |
43 |
| - | |
44 |
| -LL | (1, _) | (_, 2) if let ref y = x && c => (), |
45 |
| - | +++ |
46 |
| - |
47 |
| -error[E0382]: use of moved value: `x` |
48 |
| - --> $DIR/move-guard-if-let-chain.rs:82:16 |
49 |
| - | |
50 |
| -LL | let x: Box<_> = Box::new(1); |
51 |
| - | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait |
52 |
| -... |
53 |
| -LL | (1, 2) if let y = x && c => false, |
54 |
| - | - value moved here |
55 |
| -LL | _ => { *x == 1 }, |
56 |
| - | ^^ value used here after move |
57 |
| - | |
58 |
| -help: borrow this binding in the pattern to avoid moving the value |
59 |
| - | |
60 |
| -LL | (1, 2) if let ref y = x && c => false, |
61 |
| - | +++ |
62 |
| - |
63 |
| -error[E0382]: use of moved value: `x` |
64 |
| - --> $DIR/move-guard-if-let-chain.rs:103:41 |
65 |
| - | |
66 |
| -LL | let x: Box<_> = Box::new(1); |
67 |
| - | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait |
68 |
| -... |
69 |
| -LL | (1, 2) if let y = x && c && let z = x => false, |
70 |
| - | - ^ value used here after move |
71 |
| - | | |
72 |
| - | value moved here |
73 |
| - | |
74 |
| -help: borrow this binding in the pattern to avoid moving the value |
75 |
| - | |
76 |
| -LL | (1, 2) if let ref y = x && c && let z = x => false, |
77 |
| - | +++ |
78 |
| - |
79 |
| -error: aborting due to 5 previous errors |
80 |
| - |
81 |
| -For more information about this error, try `rustc --explain E0382`. |
0 commit comments