-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
Labels
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.Category: This is a bug.F-never_patterns`#![feature(never_patterns)]``#![feature(never_patterns)]`T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-asyncWorking group: Async & awaitWorking group: Async & awaitrequires-incomplete-featuresThis issue requires the use of incomplete features.This issue requires the use of incomplete features.
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
A-async-awaitArea: Async & AwaitArea: Async & AwaitAsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-bugCategory: This is a bug.Category: This is a bug.F-never_patterns`#![feature(never_patterns)]``#![feature(never_patterns)]`T-compilerRelevant
3E9D
to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-asyncWorking group: Async & awaitWorking group: Async & awaitrequires-incomplete-featuresThis issue requires the use of incomplete features.This issue requires the use of incomplete features.