mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
10 lines
142 B
Rust
10 lines
142 B
Rust
fn foo(x: i32) {
|
|
|y| x + y
|
|
//~^ ERROR: mismatched types
|
|
}
|
|
|
|
fn main() {
|
|
let x = foo(5)(2);
|
|
//~^ ERROR: expected function, found `()`
|
|
}
|