@@ -41,13 +41,30 @@ error[E0267]: `break` inside `async` closure
41
41
--> $DIR/break-inside-coroutine-issue-124495.rs:21:24
42
42
|
43
43
LL | let _ = async || { break; };
44
- | --^^^^^---
45
- | | |
46
- | | cannot `break` inside `async` closure
47
- | enclosing `async` closure
44
+ | -----------^^^^^---
45
+ | | |
46
+ | | cannot `break` inside `async` closure
47
+ | enclosing `async` closure
48
+
49
+ error[E0267]: `break` inside of a closure
50
+ --> $DIR/break-inside-coroutine-issue-124495.rs:23:22
51
+ |
52
+ LL | let _ = || || || break;
53
+ | -------- ^^^^^ cannot `break` inside of a closure
54
+ | |
55
+ | enclosing closure
56
+
57
+ error[E0267]: `break` inside `async` closure
58
+ --> $DIR/break-inside-coroutine-issue-124495.rs:24:40
59
+ |
60
+ LL | let _ = async || async || async || break;
61
+ | ---------------------------^^^^^
62
+ | | |
63
+ | | cannot `break` inside `async` closure
64
+ | enclosing `async` closure
48
65
49
66
error[E0267]: `break` inside `gen` block
50
- --> $DIR/break-inside-coroutine-issue-124495.rs:23 :19
67
+ --> $DIR/break-inside-coroutine-issue-124495.rs:26 :19
51
68
|
52
69
LL | let _ = gen { break; };
53
70
| ------^^^^^---
@@ -56,14 +73,14 @@ LL | let _ = gen { break; };
56
73
| enclosing `gen` block
57
74
58
75
error[E0267]: `break` inside `async gen` block
59
- --> $DIR/break-inside-coroutine-issue-124495.rs:25 :25
76
+ --> $DIR/break-inside-coroutine-issue-124495.rs:28 :25
60
77
|
61
78
LL | let _ = async gen { break; };
62
79
| ------------^^^^^---
63
80
| | |
64
81
| | cannot `break` inside `async gen` block
65
82
| enclosing `async gen` block
66
83
67
- error: aborting due to 7 previous errors
84
+ error: aborting due to 9 previous errors
68
85
69
86
For more information about this error, try `rustc --explain E0267`.
0 commit comments