mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
7 lines
125 B
Rust
7 lines
125 B
Rust
fn main() {
|
|
let f = |x| x * 3;
|
|
let a = f(); //~ ERROR E0057
|
|
let b = f(4);
|
|
let c = f(2, 3); //~ ERROR E0057
|
|
}
|