]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-labels.stderr
Rollup merge of #107264 - ferrocene:pa-private-items, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / suggest-labels.stderr
1 error[E0426]: use of undeclared label `'fo`
2   --> $DIR/suggest-labels.rs:4:15
3    |
4 LL |     'foo: loop {
5    |     ---- a label with a similar name is reachable
6 LL |         break 'fo;
7    |               ^^^
8    |               |
9    |               undeclared label `'fo`
10    |               help: try using similarly named label: `'foo`
11
12 error[E0426]: use of undeclared label `'bor`
13   --> $DIR/suggest-labels.rs:8:18
14    |
15 LL |     'bar: loop {
16    |     ---- a label with a similar name is reachable
17 LL |         continue 'bor;
18    |                  ^^^^
19    |                  |
20    |                  undeclared label `'bor`
21    |                  help: try using similarly named label: `'bar`
22
23 error[E0426]: use of undeclared label `'longlable`
24   --> $DIR/suggest-labels.rs:13:19
25    |
26 LL |         'longlabel1: loop {
27    |         ----------- a label with a similar name is reachable
28 LL |             break 'longlable;
29    |                   ^^^^^^^^^^
30    |                   |
31    |                   undeclared label `'longlable`
32    |                   help: try using similarly named label: `'longlabel1`
33
34 error: aborting due to 3 previous errors
35
36 For more information about this error, try `rustc --explain E0426`.