diff --git a/src/test/run-pass/hygiene.rs b/src/test/run-pass/hygiene.rs index 4507ba50192dd..d72386190ecd2 100644 --- a/src/test/run-pass/hygiene.rs +++ b/src/test/run-pass/hygiene.rs @@ -106,6 +106,13 @@ fn match_hygiene() { m!(Ok(x), x); } +fn label_hygiene() { + 'a: loop { + macro_rules! m { () => { break 'a; } } + m!(); + } +} + fn main() { f(); g();