rust/tests/ui/pattern/usefulness/match-arm-statics.stderr

39 lines
1.2 KiB
Plaintext

error: unreachable pattern
--> $DIR/match-arm-statics.rs:25:9
|
LL | TRUE_TRUE => (),
| --------- matches all the values already
...
LL | (true, true) => ()
| ^^^^^^^^^^^^ unreachable pattern
|
note: the lint level is defined here
--> $DIR/match-arm-statics.rs:2:9
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/match-arm-statics.rs:40:9
|
LL | Some(Some(EAST)) => (),
| ---------------- matches all the values already
...
LL | Some(Some(East)) => (),
| ^^^^^^^^^^^^^^^^ unreachable pattern
error: unreachable pattern
--> $DIR/match-arm-statics.rs:60:9
|
LL | Foo { bar: _, baz: NEW_FALSE } => (),
| ------------------------------ matches some of the same values
...
LL | Foo { bar: Some(EAST), .. } => (),
| --------------------------- matches some of the same values
LL | Foo { bar: Some(North), baz: NewBool(true) } => (),
LL | Foo { bar: Some(EAST), baz: NewBool(false) } => ()
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable pattern
error: aborting due to 3 previous errors