mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 02:40:40 +00:00
6 lines
85 B
Rust
6 lines
85 B
Rust
// run-pass
|
|
fn main() {
|
|
let f = |_||x, y| x+y;
|
|
assert_eq!(f(())(1, 2), 3);
|
|
}
|