]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issue-87694-duplicated-pub.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[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