Files
rust/src/test/ui/pattern/usefulness/integer-ranges/pointer-sized-int.allow.stderr

18 lines
492 B
Plaintext
Raw Normal View History

2020-11-20 19:03:56 +00:00
error[E0004]: non-exhaustive patterns: type `usize` is non-empty
2020-12-02 20:24:20 +00:00
--> $DIR/pointer-sized-int.rs:48:11
|
2020-11-20 19:03:56 +00:00
LL | match 7usize {}
| ^^^^^^
|
2020-11-20 19:03:56 +00:00
= note: the matched value is of type `usize`
help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms
|
LL ~ match 7usize {
LL + _ => todo!(),
LL + }
|
error: aborting due to previous error
For more information about this error, try `rustc --explain E0004`.