rust/src/test/ui/inference/cannot-infer-async-enabled-impl-trait-bindings.rs
2019-08-20 03:08:42 +02:00

17 lines
338 B
Rust

// edition:2018
#![feature(impl_trait_in_bindings)]
//~^ WARN the feature `impl_trait_in_bindings` is incomplete and may cause the compiler to crash
use std::io::Error;
fn make_unit() -> Result<(), Error> {
Ok(())
}
fn main() {
let fut = async {
make_unit()?; //~ ERROR type annotations needed
Ok(())
};
}