rust/src/test/ui/exhaustive_integer_patterns.stderr

52 lines
1.8 KiB
Plaintext
Raw Normal View History

error: unreachable pattern
--> $DIR/exhaustive_integer_patterns.rs:32:9
|
LL | 200 => {} //~ ERROR unreachable pattern
| ^^^
|
note: lint level defined here
--> $DIR/exhaustive_integer_patterns.rs:13:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error[E0004]: non-exhaustive patterns: `128u8...255u8` not covered
--> $DIR/exhaustive_integer_patterns.rs:37:11
|
2018-05-21 19:03:05 -05:00
LL | match x { //~ ERROR non-exhaustive patterns
| ^ pattern `128u8...255u8` not covered
2018-05-21 14:50:40 -05:00
error[E0004]: non-exhaustive patterns: `11u8...19u8`, `31u8...34u8`, `36u8...69u8` and 1 more not covered
--> $DIR/exhaustive_integer_patterns.rs:42:11
|
LL | match x { //~ ERROR non-exhaustive patterns
2018-05-21 14:50:40 -05:00
| ^ patterns `11u8...19u8`, `31u8...34u8`, `36u8...69u8` and 1 more not covered
error: unreachable pattern
--> $DIR/exhaustive_integer_patterns.rs:53:9
|
LL | -2..=20 => {} //~ ERROR unreachable pattern
| ^^^^^^^
2018-05-23 04:22:45 -05:00
error[E0004]: non-exhaustive patterns: `-128i8...-8i8`, `-6i8`, `121i8...124i8` and 1 more not covered
--> $DIR/exhaustive_integer_patterns.rs:50:11
|
LL | match x { //~ ERROR non-exhaustive patterns
2018-05-23 04:22:45 -05:00
| ^ patterns `-128i8...-8i8`, `-6i8`, `121i8...124i8` and 1 more not covered
2018-05-21 19:03:05 -05:00
error[E0004]: non-exhaustive patterns: `-128i8` not covered
--> $DIR/exhaustive_integer_patterns.rs:99:11
|
LL | match 0i8 { //~ ERROR non-exhaustive patterns
| ^^^ pattern `-128i8` not covered
error[E0004]: non-exhaustive patterns: `0i16` not covered
--> $DIR/exhaustive_integer_patterns.rs:107:11
|
LL | match 0i16 { //~ ERROR non-exhaustive patterns
| ^^^^ pattern `0i16` not covered
error: aborting due to 7 previous errors
For more information about this error, try `rustc --explain E0004`.