rust/tests/ui/parser/issue-87694-duplicated-pub.rs

6 lines
282 B
Rust
Raw Normal View History

pub const pub fn test() {}
//~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| NOTE expected one of `async`, `extern`, `fn`, or `unsafe`
2021-10-24 08:11:11 -05:00
//~| HELP there is already a visibility modifier, remove one
//~| NOTE explicit visibility first seen here