2012-11-06 18:41:06 -08:00
|
|
|
fn main() {
|
2015-02-01 12:44:15 -05:00
|
|
|
let f = |3: isize| println!("hello");
|
2024-01-26 23:53:51 +08:00
|
|
|
//~^ ERROR refutable pattern in closure argument
|
2025-04-05 19:19:56 +03:00
|
|
|
//~| NOTE `..=2_isize` and `4_isize..` not covered
|
|
|
|
|
//~| NOTE the matched value is of type `isize`
|
2012-11-06 18:41:06 -08:00
|
|
|
f(4);
|
|
|
|
|
}
|