Open
Description
Observed behavior
The code below leads to parse error in rustc 1.19.0-nightly (e40beb3af 2017-05-11)
.
#![feature(macro_vis_matcher)]
macro_rules! foo {
($v:vis) => {}
}
fn main() {
foo!(); //~ ERROR unexpected end of macro invocation
foo!(pub(in self));
}
Expected behavior
foo!()
is expanded correctly.