summaryrefslogtreecommitdiffstats
path: root/tests/ui/label/label_misspelled_2.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /tests/ui/label/label_misspelled_2.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/ui/label/label_misspelled_2.stderr')
-rw-r--r--tests/ui/label/label_misspelled_2.stderr37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/ui/label/label_misspelled_2.stderr b/tests/ui/label/label_misspelled_2.stderr
new file mode 100644
index 000000000..960646d98
--- /dev/null
+++ b/tests/ui/label/label_misspelled_2.stderr
@@ -0,0 +1,37 @@
+error: malformed loop label
+ --> $DIR/label_misspelled_2.rs:10:5
+ |
+LL | c: for _ in 0..1 {
+ | ^ help: use the correct loop label format: `'c`
+
+error: malformed loop label
+ --> $DIR/label_misspelled_2.rs:13:5
+ |
+LL | d: for _ in 0..1 {
+ | ^ help: use the correct loop label format: `'d`
+
+error[E0425]: cannot find value `b` in this scope
+ --> $DIR/label_misspelled_2.rs:8:15
+ |
+LL | 'b: for _ in 0..1 {
+ | -- a label with a similar name exists
+LL | break b;
+ | ^
+ | |
+ | not found in this scope
+ | help: use the similarly named label: `'b`
+
+error[E0425]: cannot find value `d` in this scope
+ --> $DIR/label_misspelled_2.rs:14:15
+ |
+LL | d: for _ in 0..1 {
+ | - a label with a similar name exists
+LL | break d;
+ | ^
+ | |
+ | not found in this scope
+ | help: use the similarly named label: `'d`
+
+error: aborting due to 4 previous errors
+
+For more information about this error, try `rustc --explain E0425`.