]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | fn main() {} |
2 | ||
a2a8927a | 3 | extern "C" { //~ NOTE while parsing this item list starting here |
223e47cc | 4 | pub pub fn foo(); |
923072b8 FG |
5 | //~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub` |
6 | //~| NOTE expected one of 8 possible tokens | |
a2a8927a XL |
7 | //~| HELP there is already a visibility modifier, remove one |
8 | //~| NOTE explicit visibility first seen here | |
9 | } //~ NOTE the item list ends here |