summary refs log tree commit diff
path: root/src/test/ui/inference/cannot-infer-async.rs
blob: 05f62f3d8cbc0aa4a4bda6647dff130335a26ed8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// edition:2018

use std::io::Error;

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

fn main() {
    let fut = async {
        make_unit()?; //~ ERROR type annotations needed

        Ok(())
    };
}