Handle safety keyword for extern block inner items
This commit is contained in:
parent
bbddc9b58f
commit
2a377122dd
52 changed files with 168 additions and 84 deletions
|
@ -1,10 +1,10 @@
|
|||
error: expected one of `extern`, `fn`, or `unsafe`, found keyword `pub`
|
||||
error: expected one of `extern`, `fn`, `safe`, or `unsafe`, found keyword `pub`
|
||||
--> $DIR/issue-76437-async.rs:4:11
|
||||
|
|
||||
LL | async pub fn t() {}
|
||||
| ------^^^
|
||||
| | |
|
||||
| | expected one of `extern`, `fn`, or `unsafe`
|
||||
| | expected one of `extern`, `fn`, `safe`, or `unsafe`
|
||||
| help: visibility `pub` must come before `async`: `pub async`
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue