From c1a6ff2d6b1dccd5af1c6cb9b9e67066af4c0247 Mon Sep 17 00:00:00 2001 From: Jeffrey Seyfried Date: Fri, 15 Jul 2016 05:23:55 +0000 Subject: [PATCH] Add labels hygiene test --- src/test/run-pass/hygiene.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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();