diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/label/label-static.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/label/label-static.rs b/src/test/ui/label/label-static.rs new file mode 100644 index 000000000..95e764d01 --- /dev/null +++ b/src/test/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` + } +} |