blob: 416564d94dcb4d0197a0f103a09be2d4f692fc40 (
plain)
1
2
3
4
5
6
7
|
fn main() {
let f = |3: isize| println!("hello");
//~^ ERROR refutable pattern in closure argument
//~| NOTE `..=2_isize` and `4_isize..` not covered
//~| NOTE the matched value is of type `isize`
f(4);
}
|