]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/cannot-infer-async.rs
Rollup merge of #106835 - compiler-errors:new-solver-gat-rebase-oops, r=lcnr
[rust.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 }