diff options
Diffstat (limited to 'tests/ui/label/label-static.stderr')
-rw-r--r-- | tests/ui/label/label-static.stderr | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/label/label-static.stderr b/tests/ui/label/label-static.stderr new file mode 100644 index 000000000..1d3251d1b --- /dev/null +++ b/tests/ui/label/label-static.stderr @@ -0,0 +1,14 @@ +error: invalid label name `'static` + --> $DIR/label-static.rs:2:5 + | +LL | 'static: loop { + | ^^^^^^^ + +error: invalid label name `'static` + --> $DIR/label-static.rs:3:15 + | +LL | break 'static + | ^^^^^^^ + +error: aborting due to 2 previous errors + |