]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-closure.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[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 }