]> git.lizzy.rs Git - rust.git/blob - src/test/ui/inference/cannot-infer-closure.rs
selection failure: recompute applicable impls
[rust.git] / src / test / 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 }