Add help assertion for async pub test
This commit is contained in:
parent
9321efd8f7
commit
c44a5feb05
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -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`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue