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

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

12 lines
357 B
Plaintext
Raw Normal View History

2022-12-23 21:02:23 +01:00
error[E0005]: refutable pattern in function argument
2018-12-25 08:56:47 -07:00
--> $DIR/refutable-pattern-in-fn-arg.rs:2:14
2018-08-08 14:28:26 +02:00
|
LL | let f = |3: isize| println!("hello");
| ^ pattern `_` not covered
|
= note: the matched value is of type `isize`
2018-08-08 14:28:26 +02:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0005`.