2018-11-30 13:53:15 +00:00
|
|
|
error[E0004]: non-exhaustive patterns: `-2147483648i32..=0i32` and `2i32..=2147483647i32` not covered
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-non-exhaustive.rs:2:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | match 0 { 1 => () } //~ ERROR non-exhaustive patterns
|
2018-11-30 13:53:15 +00:00
|
|
|
| ^ patterns `-2147483648i32..=0i32` and `2i32..=2147483647i32` not covered
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error[E0004]: non-exhaustive patterns: `_` not covered
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-non-exhaustive.rs:3:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | match 0 { 0 if false => () } //~ ERROR non-exhaustive patterns
|
|
|
|
| ^ pattern `_` not covered
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0004`.
|