Skip to content

Commit

Permalink
Add labels hygiene test
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Jul 15, 2016
1 parent c83e31e commit c1a6ff2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/run-pass/hygiene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c1a6ff2

Please sign in to comment.