Skip to content

:vis matcher can't parse EOF #41949

Open
Open
@qnighy

Description

@qnighy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: All kinds of macros (custom derive, macro_rules!, proc macros, ..)C-bugCategory: This is a bug.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions