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
420 B
Rust
Raw Normal View History

fn main() {}
2021-08-09 19:00:25 -05:00
extern "C" { //~ NOTE while parsing this item list starting here
pub pub fn foo();
//~^ 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