]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-76437-const-async.stderr
Rollup merge of #91055 - lcnr:type_of-closures, r=nikomatsakis
[rust.git] / src / test / ui / parser / issues / issue-76437-const-async.stderr
1 error: expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
2   --> $DIR/issue-76437-const-async.rs:4:17
3    |
4 LL |     const async pub fn t() {}
5    |     ------------^^^
6    |     |           |
7    |     |           expected one of `extern`, `fn`, or `unsafe`
8    |     help: visibility `pub` must come before `const async`: `pub const async`
9
10 error: aborting due to previous error
11