Skip to content

Commit c1a6ff2

Browse files
committed
Add labels hygiene test
1 parent c83e31e commit c1a6ff2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/run-pass/hygiene.rs

+7
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ fn match_hygiene() {
106106
m!(Ok(x), x);
107107
}
108108

109+
fn label_hygiene() {
110+
'a: loop {
111+
macro_rules! m { () => { break 'a; } }
112+
m!();
113+
}
114+
}
115+
109116
fn main() {
110117
f();
111118
g();

0 commit comments

Comments
 (0)