summary refs log tree commit diff
path: root/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs
blob: 51ff641509df598ceb5fa40a83ad8094ba5b2a9e (plain)
1
2
3
4
5
6
fn main() {
    let f = |3: isize| println!("hello");
    //~^ ERROR refutable pattern in closure argument
    //~| `..=2_isize` and `4_isize..` not covered
    f(4);
}