]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-async.rs
Rollup merge of #100861 - RalfJung:const-ice, r=oli-obk
[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()?;
12
13         Ok(()) //~ ERROR type annotations needed
14     };
15 }