2019-08-12 16:50:46 -07:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
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 {
|
2021-04-17 11:56:07 -07:00
|
|
|
make_unit()?;
|
2019-08-12 18:42:19 -07:00
|
|
|
|
2022-10-19 17:17:19 +02:00
|
|
|
Ok(())
|
|
|
|
//~^ ERROR type annotations needed
|
2019-08-12 16:50:46 -07:00
|
|
|
};
|
|
|
|
}
|