summary refs log tree commit diff
path: root/src/test/ui/inference/cannot-infer-closure.rs
blob: 8f48483c254218a66f9fcd4afe6cce7e919faf8e (plain)
1
2
3
4
5
6
fn main() {
    let x = |a: (), b: ()| {
        Err(a)?; //~ ERROR type annotations needed for the closure
        Ok(b)
    };
}