-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints
Description
#![feature(macro_rules)]
macro_rules! foo { () => { ($e) } }
foo!{}
macro-variable.rs:3:28: 3:29 error: unknown macro variable `e`
macro-variable.rs:3 macro_rules! foo { () => { ($e) } }
^
and if the RHS of the macro is changed to just => { $e }
macro-variable.rs:1:1: 1:1 error: unknown macro variable `e`
macro-variable.rs:1 #![feature(macro_rules)]
^
Preferably this would put the error snake under the whole $...
expression too.
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Messages for errors, warnings, and lintsArea: Messages for errors, warnings, and lints