Closed
Description
macro_rules! empty { () => () }
fn main() {
match 42 {
_ => empty!()
};
}
The error is "unexpected token: <eof>
" with a span of 1:1: 1:1.
macro_rules! empty { () => () }
fn main() {
match 42 {
_ => { empty!(); }
};
}
Expected: the failing code either compiles or at least gives an error pointing at the problem.
Found by mohawk on IRC.