1 // Incorrect handling of uninhabited types could cause us to mark generator
2 // types as entirely uninhabited, when they were in fact constructible. This
3 // caused us to hit "unreachable" code (illegal instruction on x86).
7 // compile-flags: --edition=2018 -Aunused
9 pub enum Uninhabited { }
11 fn uninhabited_async() -> Uninhabited {
17 async fn contains_never() {
18 let error = uninhabited_async();
23 async fn overlap_never() {
24 let error1 = uninhabited_async();
26 let error2 = uninhabited_async();
32 #[allow(unused_must_use)]