Closed
Description
Hygiene currently prevents capturing variables but does not prevent you from capturing named labels.
For example:
fn main() {
macro_rules! breakme(
($value: expr) => {
break 'foo;
}
)
'foo: loop {
breakme!("foo");
}
}
Note, this currently causes a bus error in rustc, but probably otherwise works, and used to work before let hygiene was added.