1
1
error[E0697]: closures cannot be static
2
- --> $DIR/expanded- exhaustive.rs:211:9
2
+ --> $DIR/exhaustive.rs:211:9
3
3
|
4
4
LL | static || value;
5
5
| ^^^^^^^^^
6
6
7
7
error[E0697]: closures cannot be static
8
- --> $DIR/expanded- exhaustive.rs:212:9
8
+ --> $DIR/exhaustive.rs:212:9
9
9
|
10
10
LL | static move || value;
11
11
| ^^^^^^^^^^^^^^
12
12
13
13
error[E0728]: `await` is only allowed inside `async` functions and blocks
14
- --> $DIR/expanded- exhaustive.rs:241:13
14
+ --> $DIR/exhaustive.rs:241:13
15
15
|
16
16
LL | fn expr_await() {
17
17
| --------------- this is not `async`
@@ -20,19 +20,19 @@ LL | fut.await;
20
20
| ^^^^^ only allowed inside `async` functions and blocks
21
21
22
22
error: in expressions, `_` can only be used on the left-hand side of an assignment
23
- --> $DIR/expanded- exhaustive.rs:290:9
23
+ --> $DIR/exhaustive.rs:290:9
24
24
|
25
25
LL | _;
26
26
| ^ `_` not allowed here
27
27
28
28
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
29
- --> $DIR/expanded- exhaustive.rs:300:9
29
+ --> $DIR/exhaustive.rs:300:9
30
30
|
31
31
LL | x::();
32
32
| ^^^^^ only `Fn` traits may use parentheses
33
33
34
34
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
35
- --> $DIR/expanded- exhaustive.rs:301:9
35
+ --> $DIR/exhaustive.rs:301:9
36
36
|
37
37
LL | x::(T, T) -> T;
38
38
| ^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
@@ -44,31 +44,31 @@ LL + x::<T, T> -> T;
44
44
|
45
45
46
46
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
47
- --> $DIR/expanded- exhaustive.rs:302:9
47
+ --> $DIR/exhaustive.rs:302:9
48
48
|
49
49
LL | crate::() -> ()::expressions::() -> ()::expr_path;
50
50
| ^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
51
51
52
52
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
53
- --> $DIR/expanded- exhaustive.rs:302:26
53
+ --> $DIR/exhaustive.rs:302:26
54
54
|
55
55
LL | crate::() -> ()::expressions::() -> ()::expr_path;
56
56
| ^^^^^^^^^^^^^^^^^^^^^ only `Fn` traits may use parentheses
57
57
58
58
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
59
- --> $DIR/expanded- exhaustive.rs:305:9
59
+ --> $DIR/exhaustive.rs:305:9
60
60
|
61
61
LL | core::()::marker::()::PhantomData;
62
62
| ^^^^^^^^ only `Fn` traits may use parentheses
63
63
64
64
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
65
- --> $DIR/expanded- exhaustive.rs:305:19
65
+ --> $DIR/exhaustive.rs:305:19
66
66
|
67
67
LL | core::()::marker::()::PhantomData;
68
68
| ^^^^^^^^^^ only `Fn` traits may use parentheses
69
69
70
70
error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
71
- --> $DIR/expanded- exhaustive.rs:403:9
71
+ --> $DIR/exhaustive.rs:403:9
72
72
|
73
73
LL | yield;
74
74
| ^^^^^
@@ -79,29 +79,29 @@ LL | #[coroutine] fn expr_yield() {
79
79
| ++++++++++++
80
80
81
81
error[E0703]: invalid ABI: found `C++`
82
- --> $DIR/expanded- exhaustive.rs:483:23
82
+ --> $DIR/exhaustive.rs:483:23
83
83
|
84
84
LL | unsafe extern "C++" {}
85
85
| ^^^^^ invalid ABI
86
86
|
87
87
= note: invoke `rustc --print=calling-conventions` for a full list of supported calling conventions
88
88
89
89
error: `..` patterns are not allowed here
90
- --> $DIR/expanded- exhaustive.rs:693:13
90
+ --> $DIR/exhaustive.rs:693:13
91
91
|
92
92
LL | let ..;
93
93
| ^^
94
94
|
95
95
= note: only allowed in tuple, tuple struct, and slice patterns
96
96
97
97
error[E0214]: parenthesized type parameters may only be used with a `Fn` trait
98
- --> $DIR/expanded- exhaustive.rs:808:16
98
+ --> $DIR/exhaustive.rs:808:16
99
99
|
100
100
LL | let _: T() -> !;
101
101
| ^^^^^^^^ only `Fn` traits may use parentheses
102
102
103
103
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
104
- --> $DIR/expanded- exhaustive.rs:823:16
104
+ --> $DIR/exhaustive.rs:823:16
105
105
|
106
106
LL | let _: impl Send;
107
107
| ^^^^^^^^^
@@ -112,7 +112,7 @@ LL | let _: impl Send;
112
112
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
113
113
114
114
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
115
- --> $DIR/expanded- exhaustive.rs:824:16
115
+ --> $DIR/exhaustive.rs:824:16
116
116
|
117
117
LL | let _: impl Send + 'static;
118
118
| ^^^^^^^^^^^^^^^^^^^
@@ -123,7 +123,7 @@ LL | let _: impl Send + 'static;
123
123
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
124
124
125
125
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
126
- --> $DIR/expanded- exhaustive.rs:825:16
126
+ --> $DIR/exhaustive.rs:825:16
127
127
|
128
128
LL | let _: impl 'static + Send;
129
129
| ^^^^^^^^^^^^^^^^^^^
@@ -134,7 +134,7 @@ LL | let _: impl 'static + Send;
134
134
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
135
135
136
136
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
137
- --> $DIR/expanded- exhaustive.rs:826:16
137
+ --> $DIR/exhaustive.rs:826:16
138
138
|
139
139
LL | let _: impl ?Sized;
140
140
| ^^^^^^^^^^^
@@ -145,7 +145,7 @@ LL | let _: impl ?Sized;
145
145
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
146
146
147
147
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
148
- --> $DIR/expanded- exhaustive.rs:827:16
148
+ --> $DIR/exhaustive.rs:827:16
149
149
|
150
150
LL | let _: impl ~const Clone;
151
151
| ^^^^^^^^^^^^^^^^^
@@ -156,7 +156,7 @@ LL | let _: impl ~const Clone;
156
156
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
157
157
158
158
error[E0562]: `impl Trait` is not allowed in the type of variable bindings
159
- --> $DIR/expanded- exhaustive.rs:828:16
159
+ --> $DIR/exhaustive.rs:828:16
160
160
|
161
161
LL | let _: impl for<'a> Send;
162
162
| ^^^^^^^^^^^^^^^^^
0 commit comments