about summary refs log tree commit diff
path: root/tests/ui/label/label-static.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/label/label-static.rs')
-rw-r--r--tests/ui/label/label-static.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/label/label-static.rs b/tests/ui/label/label-static.rs
new file mode 100644
index 00000000000..95e764d0187
--- /dev/null
+++ b/tests/ui/label/label-static.rs
@@ -0,0 +1,5 @@
+fn main() {
+    'static: loop { //~ ERROR invalid label name `'static`
+        break 'static //~ ERROR invalid label name `'static`
+    }
+}