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
145 B
Rust
Raw Normal View History

fn main() {
let f = |3: isize| println!("hello");
2022-12-23 14:02:23 -06:00
//~^ ERROR refutable pattern in function argument
//~| `_` not covered
f(4);
}