rust/src/test/ui/parser/issue-76437-const-async-unsafe.rs

7 lines
133 B
Rust
Raw Normal View History

// edition:2018
mod t {
const async unsafe pub fn t() {}
//~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
}