]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-76437-const-async.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / 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