Skip to content

Commit

Permalink
Add help assertion for async pub test
Browse files Browse the repository at this point in the history
  • Loading branch information
pickfire committed Mar 17, 2021
1 parent 9321efd commit c44a5fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-async.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
async pub fn t() {}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| HELP visibility `pub` must come before `async`
}
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-const-async-unsafe.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
const async unsafe pub fn t() {}
//~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
//~| HELP visibility `pub` must come before `const async unsafe`
}
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-const-async.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
const async pub fn t() {}
//~^ ERROR expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| HELP visibility `pub` must come before `const async`
}
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-const.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
const pub fn t() {}
//~^ ERROR expected one of `async`, `extern`, `fn`, or `unsafe`, found keyword `pub`
//~| HELP visibility `pub` must come before `const`
}
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-pub-crate-unsafe.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
unsafe pub(crate) fn t() {}
//~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
//~| HELP visibility `pub(crate)` must come before `unsafe`
}
1 change: 1 addition & 0 deletions src/test/ui/parser/issue-76437-unsafe.rs
Expand Up @@ -3,4 +3,5 @@
mod t {
unsafe pub fn t() {}
//~^ ERROR expected one of `extern` or `fn`, found keyword `pub`
//~| HELP visibility `pub` must come before `unsafe`
}

0 comments on commit c44a5fe

Please sign in to comment.