2017-10-09 17:21:09 -05:00
|
|
|
error[E0426]: use of undeclared label `'fo`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/suggest-labels.rs:4:15
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
2020-06-25 09:16:38 -05:00
|
|
|
LL | 'foo: loop {
|
|
|
|
| ---- a label with a similar name is reachable
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | break 'fo;
|
2019-04-03 23:43:58 -05:00
|
|
|
| ^^^
|
2020-06-25 09:16:38 -05:00
|
|
|
| |
|
|
|
|
| undeclared label `'fo`
|
|
|
|
| help: try using similarly named label: `'foo`
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
|
|
error[E0426]: use of undeclared label `'bor`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/suggest-labels.rs:8:18
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
2020-06-25 09:16:38 -05:00
|
|
|
LL | 'bar: loop {
|
|
|
|
| ---- a label with a similar name is reachable
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | continue 'bor;
|
2019-04-03 23:43:58 -05:00
|
|
|
| ^^^^
|
2020-06-25 09:16:38 -05:00
|
|
|
| |
|
|
|
|
| undeclared label `'bor`
|
|
|
|
| help: try using similarly named label: `'bar`
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
|
|
error[E0426]: use of undeclared label `'longlable`
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/suggest-labels.rs:13:19
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
2020-06-25 09:16:38 -05:00
|
|
|
LL | 'longlabel1: loop {
|
|
|
|
| ----------- a label with a similar name is reachable
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | break 'longlable;
|
2019-04-03 23:43:58 -05:00
|
|
|
| ^^^^^^^^^^
|
2020-06-25 09:16:38 -05:00
|
|
|
| |
|
|
|
|
| undeclared label `'longlable`
|
|
|
|
| help: try using similarly named label: `'longlabel1`
|
2017-10-09 17:21:09 -05:00
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0426`.
|