about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-99914.rs
blob: a7858740f09fa15f1f572de0261ecec8819606e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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) {}