]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-87694-misplaced-pub.rs
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[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