Rust doesn't suggest adding a return type for async functions #90027
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
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=2018&gist=ef06e37eae2f34c12c2143d48c9b4a0a
The current output is:
Ideally the output should look like:
Rust already suggests adding a return type when the function is not
async
.The text was updated successfully, but these errors were encountered: