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