]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-87694-misplaced-pub.rs
Merge commit '0eff589afc83e21a03a168497bbab6b4dfbb4ef6' into clippyup
[rust.git] / src / test / ui / parser / issue-87694-misplaced-pub.rs
1 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 visibility `pub` must come before `const`
5 //~| SUGGESTION pub const