|
1 |
| -error[E0277]: `()` is not a tuple |
2 |
| - --> $DIR/closure.rs:7:5 |
3 |
| - | |
4 |
| -LL | t(); |
5 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
6 |
| - | |
7 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
8 |
| - | |
9 |
| -LL | fn main() -> () where (): Tuple { |
10 |
| - | +++++++++++++++ |
11 |
| - |
12 |
| -error[E0277]: `()` is not a tuple |
13 |
| - --> $DIR/closure.rs:13:5 |
14 |
| - | |
15 |
| -LL | b(); |
16 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
17 |
| - | |
18 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
19 |
| - | |
20 |
| -LL | fn main() -> () where (): Tuple { |
21 |
| - | +++++++++++++++ |
22 |
| - |
23 |
| -error[E0277]: `()` is not a tuple |
24 |
| - --> $DIR/closure.rs:17:5 |
25 |
| - | |
26 |
| -LL | c(); |
27 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
28 |
| - | |
29 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
30 |
| - | |
31 |
| -LL | fn main() -> () where (): Tuple { |
32 |
| - | +++++++++++++++ |
33 |
| - |
34 |
| -error[E0277]: `()` is not a tuple |
35 |
| - --> $DIR/closure.rs:18:5 |
| 1 | +error[E0382]: borrow of moved value: `b` |
| 2 | + --> $DIR/closure.rs:27:5 |
36 | 3 | |
|
| 4 | +LL | let mut c = b; |
| 5 | + | - value moved here |
| 6 | +... |
37 | 7 | LL | b();
|
38 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
39 |
| - | |
40 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
41 |
| - | |
42 |
| -LL | fn main() -> () where (): Tuple { |
43 |
| - | +++++++++++++++ |
44 |
| - |
45 |
| -error[E0277]: `()` is not a tuple |
46 |
| - --> $DIR/closure.rs:24:5 |
47 |
| - | |
48 |
| -LL | b(); |
49 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
50 |
| - | |
51 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
52 |
| - | |
53 |
| -LL | fn main() -> () where (): Tuple { |
54 |
| - | +++++++++++++++ |
55 |
| - |
56 |
| -error[E0277]: `()` is not a tuple |
57 |
| - --> $DIR/closure.rs:28:5 |
58 |
| - | |
59 |
| -LL | c(); |
60 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
61 |
| - | |
62 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
63 |
| - | |
64 |
| -LL | fn main() -> () where (): Tuple { |
65 |
| - | +++++++++++++++ |
66 |
| - |
67 |
| -error[E0277]: `()` is not a tuple |
68 |
| - --> $DIR/closure.rs:29:5 |
| 8 | + | ^ value borrowed here after move |
69 | 9 | |
|
70 |
| -LL | b(); // FIXME: reenable when this is fixed ~ ERROR |
71 |
| - | ^^^ the trait `Tuple` is not implemented for `()` |
| 10 | +note: closure cannot be moved more than once as it is not `Copy` due to moving the variable `a` out of its environment |
| 11 | + --> $DIR/closure.rs:20:9 |
72 | 12 | |
|
73 |
| -help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement |
| 13 | +LL | a = 1; |
| 14 | + | ^ |
| 15 | +help: consider mutably borrowing `b` |
74 | 16 | |
|
75 |
| -LL | fn main() -> () where (): Tuple { |
76 |
| - | +++++++++++++++ |
| 17 | +LL | let mut c = &mut b; |
| 18 | + | ++++ |
77 | 19 |
|
78 |
| -error: aborting due to 7 previous errors |
| 20 | +error: aborting due to previous error |
79 | 21 |
|
80 |
| -For more information about this error, try `rustc --explain E0277`. |
| 22 | +For more information about this error, try `rustc --explain E0382`. |
0 commit comments