2019-08-12 16:50:46 -07:00
|
|
|
// edition:2018
|
|
|
|
|
#![feature(impl_trait_in_bindings)]
|
2020-04-22 10:21:32 +02:00
|
|
|
//~^ WARN the feature `impl_trait_in_bindings` is incomplete
|
2019-08-12 16:50:46 -07:00
|
|
|
|
|
|
|
|
use std::io::Error;
|
|
|
|
|
|
2019-08-12 18:42:19 -07:00
|
|
|
fn make_unit() -> Result<(), Error> {
|
2019-08-12 16:50:46 -07:00
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let fut = async {
|
|
|
|
|
make_unit()?; //~ ERROR type annotations needed
|
2019-08-12 18:42:19 -07:00
|
|
|
|
2019-08-12 16:50:46 -07:00
|
|
|
Ok(())
|
|
|
|
|
};
|
|
|
|
|
}
|