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