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

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