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