rust/src/test/compile-fail/refutable-pattern-in-fn-arg.rs

6 lines
97 B
Rust

fn main() {
let f = |3: int| io::println("hello"); //~ ERROR refutable pattern
f(4);
}