rust/tests/ui/parser/issues/issue-76437-const-async.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
199 B
Rust
Raw Normal View History

// edition:2018
mod t {
const async pub fn t() {}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
2020-09-17 16:56:04 +00:00
//~| HELP visibility `pub` must come before `const async`
}