]> git.lizzy.rs Git - rust.git/blob - src/test/ui/label/label_break_value_continue.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / label / label_break_value_continue.stderr
1 error[E0695]: unlabeled `continue` inside of a labeled block
2   --> $DIR/label_break_value_continue.rs:6:9
3    |
4 LL |         continue;
5    |         ^^^^^^^^ `continue` statements that would diverge to or through a labeled block need to bear a label
6
7 error[E0696]: `continue` pointing to a labeled block
8   --> $DIR/label_break_value_continue.rs:13:9
9    |
10 LL | /     'b: {
11 LL | |         continue 'b;
12    | |         ^^^^^^^^^^^ labeled blocks cannot be `continue`'d
13 LL | |     }
14    | |_____- labeled block the `continue` points to
15
16 error[E0695]: unlabeled `continue` inside of a labeled block
17   --> $DIR/label_break_value_continue.rs:21:13
18    |
19 LL |             continue;
20    |             ^^^^^^^^ `continue` statements that would diverge to or through a labeled block need to bear a label
21
22 error: aborting due to 3 previous errors
23
24 Some errors have detailed explanations: E0695, E0696.
25 For more information about an error, try `rustc --explain E0695`.