Closed
Description
Trying to use an async
block in 2015 edition doesn't mention the concept of editions nor pushes the user in the right direction:
error: expected one of `,` or `}`, found `(`
--> file12.rs:11:18
|
10 | let fut = async {
| ----- while parsing this struct
11 | make_unit()?;
| ^ expected one of `,` or `}`
error[E0422]: cannot find struct, variant or union type `async` in this scope
--> file12.rs:10:15
|
10 | let fut = async {
| ^^^^^ not found in this scope
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitArea: Messages for errors, warnings, and lintsArea: The lexing & parsing of Rust source code to an ASTArea: Name/path resolution done by `rustc_resolve` specificallyAsync-await issues that have been triaged during a working group meeting.Category: An issue proposing an enhancement or a PR with one.Diagnostics: An error or lint that should account for edition differences.Diagnostics: Confusing error or lint; hard to understand for new users.Diagnostics: An error or lint that needs small tweaks.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Medium priorityRelevant to the compiler team, which will review and decide on the PR/issue.
Type
Projects
Status
Done