rust/src/test/ui/inference/cannot-infer-closure.rs
2019-08-12 18:12:19 -07:00

7 lines
131 B
Rust

fn main() {
let x = |a: (), b: ()| {
Err(a)?; //~ ERROR type annotations needed for the closure
Ok(b)
};
}