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