]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-closure.rs
Rollup merge of #82259 - osa1:issue82156, r=petrochenkov
[rust.git] / src / test / ui / inference / cannot-infer-closure.rs
1 fn main() {
2     let x = |a: (), b: ()| {
3         Err(a)?; //~ ERROR type annotations needed for the closure
4         Ok(b)
5     };
6 }