blob: fa7915a7c03247f83369fb0a36356143e72bb8f5 [file] [log] [blame]
// Ensure we give the right args when we suggest calling a closure.
fn main() {
let x = |a: i32, b: i32| a + b;
let y: i32 = x;
//~^ ERROR mismatched types
}