summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs
blob: 17dc38ab25d92ff229b805d6e19e73ce074f6203 (plain)
1
2
3
4
5
6
fn main() {
    let f = |3: isize| println!("hello");
    //~^ ERROR refutable pattern in function argument
    //~| `_` not covered
    f(4);
}