about summary refs log tree commit diff
path: root/tests/ui/parser/duplicate-visibility.rs
blob: f0ee60873da01f7582dd412ff859fc48faf0702a (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`, `safe`, `unsafe`, or `use`, found keyword `pub`
    //~| NOTE expected one of 9 possible tokens
    //~| HELP there is already a visibility modifier, remove one
    //~| NOTE explicit visibility first seen here
} //~ NOTE the item list ends here