]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-76437-const-async.rs
Rollup merge of #106570 - Xaeroxe:div-duration-tests, r=JohnTitor
[rust.git] / tests / ui / parser / issues / issue-76437-const-async.rs
1 // edition:2018
2
3 mod t {
4     const async pub fn t() {}
5     //~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
6     //~| HELP visibility `pub` must come before `const async`
7 }