]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/recover-unticked-labels.stderr
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / recover-unticked-labels.stderr
1 error: expected a label, found an identifier
2   --> $DIR/recover-unticked-labels.rs:5:26
3    |
4 LL |     'label: loop { break label 0 };
5    |                          ^^^^^ help: labels start with a tick: `'label`
6
7 error: expected a label, found an identifier
8   --> $DIR/recover-unticked-labels.rs:6:29
9    |
10 LL |     'label: loop { continue label };
11    |                             ^^^^^ help: labels start with a tick: `'label`
12
13 error[E0425]: cannot find value `label` in this scope
14   --> $DIR/recover-unticked-labels.rs:4:26
15    |
16 LL |     'label: loop { break label };
17    |     ------               ^^^^^
18    |     |                    |
19    |     |                    not found in this scope
20    |     |                    help: use the similarly named label: `'label`
21    |     a label with a similar name exists
22
23 error: aborting due to 3 previous errors
24
25 For more information about this error, try `rustc --explain E0425`.