summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issue-87694-misplaced-pub.rs
blob: 3f824617cade1288e4fd107c397a6642016fb2f5 (plain)
1
2
3
4
5
const pub fn test() {}
//~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| NOTE expected one of `async`, `extern`, `fn`, or `unsafe`
//~| HELP visibility `pub` must come before `const`
//~| SUGGESTION pub const