Files
rust/src/test/ui/inference/cannot-infer-async.rs
2021-05-06 11:37:45 -07:00

16 lines
205 B
Rust

// edition:2018
use std::io::Error;
fn make_unit() -> Result<(), Error> {
Ok(())
}
fn main() {
let fut = async {
make_unit()?;
Ok(()) //~ ERROR type annotations needed
};
}