// Thus, `&'_ u8` should be included in type signature
// of the underlying generator.
+#![feature(if_let_guard)]
+
async fn f() -> u8 { 1 }
async fn foo() -> [bool; 10] { [false; 10] }
}
}
+async fn j(x: u8) {
+ match x {
+ y if let (1, 42) = (f().await, y) => (),
+ _ => (),
+ }
+}
+
fn main() {
let _ = g(10);
let _ = h(9);
let _ = i(8);
+ let _ = j(7);
}