@@ -198,23 +198,6 @@ impl Foo for Bar {
198
198
```
199
199
"## ,
200
200
201
-
202
- E0590 : r##"
203
- `break` or `continue` must include a label when used in the condition of a
204
- `while` loop.
205
-
206
- Example of erroneous code:
207
-
208
- ```compile_fail
209
- while break {}
210
- ```
211
-
212
- To fix this, add a label specifying which loop is being broken out of:
213
- ```
214
- 'foo: while break 'foo {}
215
- ```
216
- "## ,
217
-
218
201
E0571 : r##"
219
202
A `break` statement with an argument appeared in a non-`loop` loop.
220
203
@@ -249,6 +232,22 @@ let result = loop { // ok!
249
232
```
250
233
"## ,
251
234
235
+ E0590 : r##"
236
+ `break` or `continue` must include a label when used in the condition of a
237
+ `while` loop.
238
+
239
+ Example of erroneous code:
240
+
241
+ ```compile_fail
242
+ while break {}
243
+ ```
244
+
245
+ To fix this, add a label specifying which loop is being broken out of:
246
+ ```
247
+ 'foo: while break 'foo {}
248
+ ```
249
+ "## ,
250
+
252
251
E0642 : r##"
253
252
Trait methods currently cannot take patterns as arguments.
254
253
@@ -270,6 +269,18 @@ trait Foo {
270
269
```
271
270
"## ,
272
271
272
+ E0670 : r##"
273
+ Rust 2015 does not permit the use of `async fn`.
274
+
275
+ Example of erroneous code:
276
+
277
+ ```compile_fail,E0670
278
+ async fn foo() {}
279
+ ```
280
+
281
+ Switch to the Rust 2018 edition to use `async fn`.
282
+ "## ,
283
+
273
284
E0695 : r##"
274
285
A `break` statement without a label appeared inside a labeled block.
275
286
@@ -307,18 +318,6 @@ loop {
307
318
}
308
319
```
309
320
"## ,
310
-
311
- E0670 : r##"
312
- Rust 2015 does not permit the use of `async fn`.
313
-
314
- Example of erroneous code:
315
-
316
- ```compile_fail,E0670
317
- async fn foo() {}
318
- ```
319
-
320
- Switch to the Rust 2018 edition to use `async fn`.
321
- "## ,
322
321
;
323
322
E0226 , // only a single explicit lifetime bound is permitted
324
323
E0472 , // asm! is unsupported on this target
0 commit comments