rust/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs
2023-10-27 19:56:12 +02:00

7 lines
170 B
Rust

fn main() {
let f = |3: isize| println!("hello");
//~^ ERROR refutable pattern in function argument
//~| `..=2_isize` and `4_isize..` not covered
f(4);
}