]> git.proxmox.com Git - rustc.git/blob - tests/ui/inference/cannot-infer-async.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / inference / cannot-infer-async.rs
1 // edition:2018
2
3 use std::io::Error;
4
5 fn make_unit() -> Result<(), Error> {
6 Ok(())
7 }
8
9 fn main() {
10 let fut = async {
11 make_unit()?;
12
13 Ok(())
14 //~^ ERROR type annotations needed
15 };
16 }