]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/duplicate-visibility.rs
Change syntax for TyAlias where clauses
[rust.git] / src / test / 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`, `pub`, `unsafe`, or `use`, found keyword `pub`
6     //~| NOTE expected one of 9 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