]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-76437-const-async-unsafe.rs
Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472
[rust.git] / src / test / ui / parser / issues / issue-76437-const-async-unsafe.rs
1 // edition:2018
2
3 mod t {
4     const async unsafe pub fn t() {}
5     //~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
6     //~| HELP visibility `pub` must come before `const async unsafe`
7 }