]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-76437-const.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-76437-const.rs
1 // edition:2018
2
3 mod t {
4     const pub fn t() {}
5     //~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
6     //~| HELP visibility `pub` must come before `const`
7 }