Open
Description
With #120104, a function with a !
pattern in a binding is detected as diverging:
fn never_arg(!: Void) -> ! {}
fn never_let(x: Void) -> ! {
let ! = x;
}
This doesn't work the arguments of an async
fn however:
async fn never_let(x: Void) -> ! {
let ! = x;
} // ok
async fn never_arg(!: Void) -> ! {} // ERROR mistmatched types
Metadata
Metadata
Assignees
Labels
Area: Async & AwaitAsync-await issues that have been triaged during a working group meeting.Category: This is a bug.`#![feature(never_patterns)]`Relevant to the compiler team, which will review and decide on the PR/issue.Working group: Async & awaitThis issue requires the use of incomplete features.