summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-76437-const.rs
blob: d3815a52346eed48281fbae763f45b5607e3224a (plain)
1
2
3
4
5
6
7
// edition:2018

mod t {
    const pub fn t() {}
    //~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
    //~| HELP visibility `pub` must come before `const`
}