Incorrect syntax on suggestion to make pub function async with E0277 #96555
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=0db76b4ce2ff53636126640d313e2b91
The current output is:
Ideally the output should look like:
Tested on rustc 1.60.0 stable and nightly-2022-04-29
The text was updated successfully, but these errors were encountered: