blob: a7858740f09fa15f1f572de0261ecec8819606e3 [file] [log] [blame] [edit]
//@ edition:2021
fn main() {}
struct Error;
struct Okay;
fn foo(t: Result<Okay, Error>) {
t.and_then(|t| -> _ { bar(t) });
//~^ ERROR mismatched types
}
async fn bar(t: Okay) {}