rust/tests/ui/parser/duplicate-visibility.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
428 B
Rust
Raw Normal View History

fn main() {}
2021-08-10 00:00:25 +00:00
extern "C" { //~ NOTE while parsing this item list starting here
pub pub fn foo();
//~^ ERROR expected one of `(`, `async`, `const`, `default`, `extern`, `fn`, `safe`, `unsafe`, or `use`, found keyword `pub`
//~| NOTE expected one of 9 possible tokens
2021-10-24 13:11:11 +00:00
//~| HELP there is already a visibility modifier, remove one
2021-08-10 00:00:25 +00:00
//~| NOTE explicit visibility first seen here
} //~ NOTE the item list ends here