File tree 3 files changed +11
-6
lines changed
src/librustc_error_codes/error_codes
3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- An unknown external lang item was used. Erroneous code example:
1
+ An unknown external lang item was used.
2
+
3
+ Erroneous code example:
2
4
3
5
``` compile_fail,E0264
4
6
#![feature(lang_items)]
Original file line number Diff line number Diff line change 1
- This error indicates the use of a loop keyword (` break ` or ` continue ` ) inside a
2
- closure but outside of any loop. Erroneous code example:
1
+ A loop keyword (` break ` or ` continue ` ) was used inside a closure but outside of
2
+ any loop.
3
+
4
+ Erroneous code example:
3
5
4
6
``` compile_fail,E0267
5
7
let w = || { break; }; // error: `break` inside of a closure
Original file line number Diff line number Diff line change 1
- This error indicates the use of a loop keyword (` break ` or ` continue ` ) outside
2
- of a loop. Without a loop to break out of or continue in, no sensible action can
3
- be taken. Erroneous code example:
1
+ A loop keyword (` break ` or ` continue ` ) was used outside of a loop.
2
+
3
+ Erroneous code example:
4
4
5
5
``` compile_fail,E0268
6
6
fn some_func() {
7
7
break; // error: `break` outside of a loop
8
8
}
9
9
```
10
10
11
+ Without a loop to break out of or continue in, no sensible action can be taken.
11
12
Please verify that you are using ` break ` and ` continue ` only in loops. Example:
12
13
13
14
```
You can’t perform that action at this time.
0 commit comments