summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/duplicate-visibility.rs
blob: 54955944c7d35e0d72207f7f7db8e94a916e07f8 (plain)
1
2
3
4
5
6
7
8
9
fn main() {}

extern "C" { //~ NOTE while parsing this item list starting here
    pub pub fn foo();
    //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
    //~| NOTE expected one of 8 possible tokens
    //~| HELP there is already a visibility modifier, remove one
    //~| NOTE explicit visibility first seen here
} //~ NOTE the item list ends here