]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/duplicate-visibility.rs
Rollup merge of #107354 - tspiteri:source-serif-4.005, r=GuillaumeGomez
[rust.git] / tests / ui / parser / duplicate-visibility.rs
1 fn main() {}
2
3 extern "C" { //~ NOTE while parsing this item list starting here
4     pub pub fn foo();
5     //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
6     //~| NOTE expected one of 8 possible tokens
7     //~| HELP there is already a visibility modifier, remove one
8     //~| NOTE explicit visibility first seen here
9 } //~ NOTE the item list ends here