diff options
Diffstat (limited to 'tests/ui/parser/issues/issue-87812.rs')
-rw-r--r-- | tests/ui/parser/issues/issue-87812.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/parser/issues/issue-87812.rs b/tests/ui/parser/issues/issue-87812.rs new file mode 100644 index 000000000..0ba87b995 --- /dev/null +++ b/tests/ui/parser/issues/issue-87812.rs @@ -0,0 +1,13 @@ +#![deny(break_with_label_and_loop)] + +macro_rules! foo { + ( $f:block ) => { + '_l: loop { + break '_l $f; //~ERROR + } + }; +} + +fn main() { + let x = foo!({ 3 }); +} |