]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-async.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / 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()?; //~ ERROR type annotations needed
12
13         Ok(())
14     };
15 }