-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.
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.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lintsA-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.Category: This is a bug.