]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/cannot-infer-closure.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui / inference / cannot-infer-closure.rs
1 fn main() {
2     let x = |a: (), b: ()| {
3         Err(a)?;
4         Ok(b)
5         //~^ ERROR type annotations needed
6     };
7 }