mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
8 lines
171 B
Rust
8 lines
171 B
Rust
// 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
|
|
}
|