@@ -25,114 +25,114 @@ LL | () if (((let 0 = 1))) => {}
25
25
| ^^^^^^^^^
26
26
27
27
error: expected expression, found `let` statement
28
- --> $DIR/feature-gate.rs:24 :16
28
+ --> $DIR/feature-gate.rs:22 :16
29
29
|
30
30
LL | () if (let 0 = 1) && true => {}
31
31
| ^^^^^^^^^
32
32
|
33
33
= note: only supported directly in conditions of `if` and `while` expressions
34
34
note: `let`s wrapped in parentheses are not supported in a context with let chains
35
- --> $DIR/feature-gate.rs:24 :16
35
+ --> $DIR/feature-gate.rs:22 :16
36
36
|
37
37
LL | () if (let 0 = 1) && true => {}
38
38
| ^^^^^^^^^
39
39
40
40
error: expected expression, found `let` statement
41
- --> $DIR/feature-gate.rs:27 :24
41
+ --> $DIR/feature-gate.rs:25 :24
42
42
|
43
43
LL | () if true && (let 0 = 1) => {}
44
44
| ^^^^^^^^^
45
45
|
46
46
= note: only supported directly in conditions of `if` and `while` expressions
47
47
note: `let`s wrapped in parentheses are not supported in a context with let chains
48
- --> $DIR/feature-gate.rs:27 :24
48
+ --> $DIR/feature-gate.rs:25 :24
49
49
|
50
50
LL | () if true && (let 0 = 1) => {}
51
51
| ^^^^^^^^^
52
52
53
53
error: expected expression, found `let` statement
54
- --> $DIR/feature-gate.rs:30 :16
54
+ --> $DIR/feature-gate.rs:28 :16
55
55
|
56
56
LL | () if (let 0 = 1) && (let 0 = 1) => {}
57
57
| ^^^^^^^^^
58
58
|
59
59
= note: only supported directly in conditions of `if` and `while` expressions
60
60
note: `let`s wrapped in parentheses are not supported in a context with let chains
61
- --> $DIR/feature-gate.rs:30 :16
61
+ --> $DIR/feature-gate.rs:28 :16
62
62
|
63
63
LL | () if (let 0 = 1) && (let 0 = 1) => {}
64
64
| ^^^^^^^^^
65
65
66
66
error: expected expression, found `let` statement
67
- --> $DIR/feature-gate.rs:30 :31
67
+ --> $DIR/feature-gate.rs:28 :31
68
68
|
69
69
LL | () if (let 0 = 1) && (let 0 = 1) => {}
70
70
| ^^^^^^^^^
71
71
|
72
72
= note: only supported directly in conditions of `if` and `while` expressions
73
73
note: `let`s wrapped in parentheses are not supported in a context with let chains
74
- --> $DIR/feature-gate.rs:30 :31
74
+ --> $DIR/feature-gate.rs:28 :31
75
75
|
76
76
LL | () if (let 0 = 1) && (let 0 = 1) => {}
77
77
| ^^^^^^^^^
78
78
79
79
error: expected expression, found `let` statement
80
- --> $DIR/feature-gate.rs:34 :42
80
+ --> $DIR/feature-gate.rs:32 :42
81
81
|
82
82
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
83
83
| ^^^^^^^^^
84
84
|
85
85
= note: only supported directly in conditions of `if` and `while` expressions
86
86
note: `let`s wrapped in parentheses are not supported in a context with let chains
87
- --> $DIR/feature-gate.rs:34 :42
87
+ --> $DIR/feature-gate.rs:32 :42
88
88
|
89
89
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
90
90
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
91
91
92
92
error: expected expression, found `let` statement
93
- --> $DIR/feature-gate.rs:34 :55
93
+ --> $DIR/feature-gate.rs:32 :55
94
94
|
95
95
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
96
96
| ^^^^^^^^^
97
97
|
98
98
= note: only supported directly in conditions of `if` and `while` expressions
99
99
note: `let`s wrapped in parentheses are not supported in a context with let chains
100
- --> $DIR/feature-gate.rs:34 :42
100
+ --> $DIR/feature-gate.rs:32 :42
101
101
|
102
102
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
103
103
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
104
104
105
105
error: expected expression, found `let` statement
106
- --> $DIR/feature-gate.rs:34 :68
106
+ --> $DIR/feature-gate.rs:32 :68
107
107
|
108
108
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
109
109
| ^^^^^^^^^
110
110
|
111
111
= note: only supported directly in conditions of `if` and `while` expressions
112
112
note: `let`s wrapped in parentheses are not supported in a context with let chains
113
- --> $DIR/feature-gate.rs:34 :42
113
+ --> $DIR/feature-gate.rs:32 :42
114
114
|
115
115
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
116
116
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117
117
118
118
error: expected expression, found `let` statement
119
- --> $DIR/feature-gate.rs:60 :16
119
+ --> $DIR/feature-gate.rs:55 :16
120
120
|
121
121
LL | use_expr!((let 0 = 1 && 0 == 0));
122
122
| ^^^
123
123
|
124
124
= note: only supported directly in conditions of `if` and `while` expressions
125
125
126
126
error: expected expression, found `let` statement
127
- --> $DIR/feature-gate.rs:62 :16
127
+ --> $DIR/feature-gate.rs:57 :16
128
128
|
129
129
LL | use_expr!((let 0 = 1));
130
130
| ^^^
131
131
|
132
132
= note: only supported directly in conditions of `if` and `while` expressions
133
133
134
134
error: no rules expected keyword `let`
135
- --> $DIR/feature-gate.rs:70 :15
135
+ --> $DIR/feature-gate.rs:65 :15
136
136
|
137
137
LL | macro_rules! use_expr {
138
138
| --------------------- when calling this macro
@@ -141,7 +141,7 @@ LL | use_expr!(let 0 = 1);
141
141
| ^^^ no rules expected this token in macro call
142
142
|
143
143
note: while trying to match meta-variable `$e:expr`
144
- --> $DIR/feature-gate.rs:53 :10
144
+ --> $DIR/feature-gate.rs:48 :10
145
145
|
146
146
LL | ($e:expr) => {
147
147
| ^^^^^^^
@@ -169,7 +169,7 @@ LL | () if true && let 0 = 1 => {}
169
169
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
170
170
171
171
error[E0658]: `if let` guards are experimental
172
- --> $DIR/feature-gate.rs:20 :12
172
+ --> $DIR/feature-gate.rs:19 :12
173
173
|
174
174
LL | () if let 0 = 1 && true => {}
175
175
| ^^^^^^^^^^^^^^^^^^^^
@@ -180,7 +180,7 @@ LL | () if let 0 = 1 && true => {}
180
180
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
181
181
182
182
error[E0658]: `if let` guards are experimental
183
- --> $DIR/feature-gate.rs:34 :12
183
+ --> $DIR/feature-gate.rs:32 :12
184
184
|
185
185
LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
186
186
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -191,7 +191,7 @@ LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 =
191
191
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
192
192
193
193
error[E0658]: `if let` guards are experimental
194
- --> $DIR/feature-gate.rs:43 :12
194
+ --> $DIR/feature-gate.rs:39 :12
195
195
|
196
196
LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
197
197
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -202,7 +202,7 @@ LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
202
202
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
203
203
204
204
error[E0658]: `if let` guards are experimental
205
- --> $DIR/feature-gate.rs:66 :12
205
+ --> $DIR/feature-gate.rs:61 :12
206
206
|
207
207
LL | () if let 0 = 1 => {}
208
208
| ^^^^^^^^^^^^
@@ -212,56 +212,6 @@ LL | () if let 0 = 1 => {}
212
212
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
213
213
= help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>`
214
214
215
- error[E0658]: `let` expressions in this position are unstable
216
- --> $DIR/feature-gate.rs:16:23
217
- |
218
- LL | () if true && let 0 = 1 => {}
219
- | ^^^^^^^^^
220
- |
221
- = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
222
- = help: add `#![feature(let_chains)]` to the crate attributes to enable
223
- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
224
-
225
- error[E0658]: `let` expressions in this position are unstable
226
- --> $DIR/feature-gate.rs:20:15
227
- |
228
- LL | () if let 0 = 1 && true => {}
229
- | ^^^^^^^^^
230
- |
231
- = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
232
- = help: add `#![feature(let_chains)]` to the crate attributes to enable
233
- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
234
-
235
- error[E0658]: `let` expressions in this position are unstable
236
- --> $DIR/feature-gate.rs:34:15
237
- |
238
- LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
239
- | ^^^^^^^^^
240
- |
241
- = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
242
- = help: add `#![feature(let_chains)]` to the crate attributes to enable
243
- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
244
-
245
- error[E0658]: `let` expressions in this position are unstable
246
- --> $DIR/feature-gate.rs:34:28
247
- |
248
- LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {}
249
- | ^^^^^^^^^
250
- |
251
- = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
252
- = help: add `#![feature(let_chains)]` to the crate attributes to enable
253
- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
254
-
255
- error[E0658]: `let` expressions in this position are unstable
256
- --> $DIR/feature-gate.rs:43:15
257
- |
258
- LL | () if let Range { start: _, end: _ } = (true..true) && false => {}
259
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
260
- |
261
- = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information
262
- = help: add `#![feature(let_chains)]` to the crate attributes to enable
263
- = note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
264
-
265
- error: aborting due to 23 previous errors
215
+ error: aborting due to 18 previous errors
266
216
267
217
For more information about this error, try `rustc --explain E0658`.
0 commit comments