summaryrefslogtreecommitdiffstats
path: root/tests/ui/inference/cannot-infer-async.rs
blob: b5152d04f6959fe511a9db9b2ab52f53a96427b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// edition:2018

use std::io::Error;

fn make_unit() -> Result<(), Error> {
    Ok(())
}

fn main() {
    let fut = async {
        make_unit()?;

        Ok(())
        //~^ ERROR type annotations needed
    };
}