rust/src/test/ui/parser/duplicate-visibility.rs

10 lines
423 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`, `pub`, `unsafe`, or `use`, found keyword `pub`
2021-08-09 19:00:25 -05:00
//~| NOTE expected one of 9 possible tokens
//~| HELP there is already a visibility, remove this one
//~| NOTE explicit visibility first seen here
} //~ NOTE the item list ends here