]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/suggestions/suggest-labels.stderr
tweak unresolved label suggestion
[rust.git] / src / test / ui / suggestions / suggest-labels.stderr
index 88a0f9698877fd0fcc60a50f596adcbd2c26872b..02d46a3f5960715dd3d86fa13840e23c73bfb29d 100644 (file)
@@ -1,20 +1,32 @@
 error[E0426]: use of undeclared label `'fo`
   --> $DIR/suggest-labels.rs:4:15
    |
-LL |         break 'fo; //~ ERROR use of undeclared label
-   |               ^^^ did you mean `'foo`?
+LL |         break 'fo;
+   |               ^^^
+help: a label with a similar name exists in this scope
+   |
+LL |         break 'foo;
+   |               ^^^^
 
 error[E0426]: use of undeclared label `'bor`
   --> $DIR/suggest-labels.rs:8:18
    |
-LL |         continue 'bor; //~ ERROR use of undeclared label
-   |                  ^^^^ did you mean `'bar`?
+LL |         continue 'bor;
+   |                  ^^^^
+help: a label with a similar name exists in this scope
+   |
+LL |         continue 'bar;
+   |                  ^^^^
 
 error[E0426]: use of undeclared label `'longlable`
   --> $DIR/suggest-labels.rs:13:19
    |
-LL |             break 'longlable; //~ ERROR use of undeclared label
-   |                   ^^^^^^^^^^ did you mean `'longlabel1`?
+LL |             break 'longlable;
+   |                   ^^^^^^^^^^
+help: a label with a similar name exists in this scope
+   |
+LL |             break 'longlabel1;
+   |                   ^^^^^^^^^^^
 
 error: aborting due to 3 previous errors