]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-87694-duplicated-pub.rs
Rollup merge of #107455 - tshepang:better-name, r=wesleywiser
[rust.git] / tests / ui / parser / issue-87694-duplicated-pub.rs
1 pub const pub fn test() {}
2 //~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
3 //~| NOTE expected one of `async`, `extern`, `fn`, or `unsafe`
4 //~| HELP there is already a visibility modifier, remove one
5 //~| NOTE explicit visibility first seen here