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

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

8 lines
188 B
Rust
Raw Normal View History

//@ edition:2018
mod t {
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 `async`
}