]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-87694-misplaced-pub.rs
Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' 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