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

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