@@ -41,13 +41,30 @@ error[E0267]: `break` inside `async` closure
4141 --> $DIR/break-inside-coroutine-issue-124495.rs:21:24
4242 |
4343LL | 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
4865
4966error[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
5168 |
5269LL | let _ = gen { break; };
5370 | ------^^^^^---
@@ -56,14 +73,14 @@ LL | let _ = gen { break; };
5673 | enclosing `gen` block
5774
5875error[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
6077 |
6178LL | let _ = async gen { break; };
6279 | ------------^^^^^---
6380 | | |
6481 | | cannot `break` inside `async gen` block
6582 | enclosing `async gen` block
6683
67- error: aborting due to 7 previous errors
84+ error: aborting due to 9 previous errors
6885
6986For more information about this error, try `rustc --explain E0267`.
0 commit comments