2020-01-31 06:43:33 +01:00
|
|
|
fn main() {}
|
|
|
|
|
2021-08-10 02:00:25 +02:00
|
|
|
extern "C" { //~ NOTE while parsing this item list starting here
|
2012-10-09 11:59:03 +02:00
|
|
|
pub pub fn foo();
|
2022-05-01 19:05:35 +02: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 15:11:11 +02:00
|
|
|
//~| HELP there is already a visibility modifier, remove one
|
2021-08-10 02:00:25 +02:00
|
|
|
//~| NOTE explicit visibility first seen here
|
|
|
|
} //~ NOTE the item list ends here
|