rust/tests/ui/pattern/usefulness/refutable-pattern-in-fn-arg.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
169 B
Rust
Raw Normal View History

fn main() {
let f = |3: isize| println!("hello");
//~^ ERROR refutable pattern in closure argument
2023-10-12 22:20:06 +00:00
//~| `..=2_isize` and `4_isize..` not covered
f(4);
}