8 lines
121 B
Rust
8 lines
121 B
Rust
// Test a rather underspecified example:
|
|
|
|
fn main() {
|
|
let f = {|i| i};
|
|
assert f(2) == 2;
|
|
assert f(5) == 5;
|
|
}
|