diff options
Diffstat (limited to 'tests/ui/label/label-static.rs')
| -rw-r--r-- | tests/ui/label/label-static.rs | 5 |
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` + } +} |
