2019-08-12 18:50:46 -05:00
|
|
|
// edition:2018
|
|
|
|
|
|
|
|
use std::io::Error;
|
|
|
|
|
2019-08-12 20:42:19 -05:00
|
|
|
fn make_unit() -> Result<(), Error> {
|
2019-08-12 18:50:46 -05:00
|
|
|
Ok(())
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let fut = async {
|
2021-04-17 13:56:07 -05:00
|
|
|
make_unit()?;
|
2019-08-12 20:42:19 -05:00
|
|
|
|
2021-04-17 13:56:07 -05:00
|
|
|
Ok(()) //~ ERROR type annotations needed
|
2019-08-12 18:50:46 -05:00
|
|
|
};
|
|
|
|
}
|