2020-01-30 23:43:33 -06:00
|
|
|
fn main() {}
|
|
|
|
|
2021-08-09 19:00:25 -05:00
|
|
|
extern "C" { //~ NOTE while parsing this item list starting here
|
2012-10-09 04:59:03 -05:00
|
|
|
pub pub fn foo();
|
2022-05-01 12:05:35 -05:00
|
|
|
//~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `unsafe`, or `use`, found keyword `pub`
|
|
|
|
//~| NOTE expected one of 8 possible tokens
|
2021-10-24 08:11:11 -05:00
|
|
|
//~| HELP there is already a visibility modifier, remove one
|
2021-08-09 19:00:25 -05:00
|
|
|
//~| NOTE explicit visibility first seen here
|
|
|
|
} //~ NOTE the item list ends here
|