fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
912 B36 linesraw
1error[E0426]: use of undeclared label `'fo`
2  --> $DIR/suggest-labels.rs:4:15
3   |
4LL |         break 'fo;
5   |               ^^^
6   |
7help: a label with a similar name exists in this scope
8   |
9LL |         break 'foo;
10   |               ^^^^
11
12error[E0426]: use of undeclared label `'bor`
13  --> $DIR/suggest-labels.rs:8:18
14   |
15LL |         continue 'bor;
16   |                  ^^^^
17   |
18help: a label with a similar name exists in this scope
19   |
20LL |         continue 'bar;
21   |                  ^^^^
22
23error[E0426]: use of undeclared label `'longlable`
24  --> $DIR/suggest-labels.rs:13:19
25   |
26LL |             break 'longlable;
27   |                   ^^^^^^^^^^
28   |
29help: a label with a similar name exists in this scope
30   |
31LL |             break 'longlabel1;
32   |                   ^^^^^^^^^^^
33
34error: aborting due to 3 previous errors
35
36For more information about this error, try `rustc --explain E0426`.