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