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

6 lines
97 B
Rust
Raw Normal View History

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