]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-87694-misplaced-pub.rs
Merge commit '40b00f4200fbdeefd11815398cb46394b8cb0a5e' into sync_cg_clif-2021-12-30
[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