rust/tests/ui/parser/issues/issue-76437-const-async.rs
2024-06-04 14:19:42 -03:00

8 lines
208 B
Rust

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