mirror of
https://git.proxmox.com/git/rustc
synced 2026-03-29 03:27:40 +00:00
17 lines
214 B
Rust
17 lines
214 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
|
|
};
|
|
}
|