mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-03 10:47:16 +00:00
8 lines
225 B
Rust
8 lines
225 B
Rust
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);
|
|
}
|