blob: 3d92b9dcde4c38f545d43ed129c2675714013b6f [file] [log] [blame]
//@ edition: 2018
//@ known-bug: #120240
#![feature(never_patterns)]
#![allow(incomplete_features)]
fn main() {}
enum Void {}
// Divergence is not detected.
async fn async_never(!: Void) -> ! {} // gives an error
// Divergence is detected
async fn async_let(x: Void) -> ! {
let ! = x;
}