2018-08-08 14:28:26 +02:00
|
|
|
error: unreachable pattern
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-arm-statics.rs:25:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | TRUE_TRUE => (),
|
2024-08-19 20:51:21 +02:00
|
|
|
| --------- matches all the relevant values
|
2024-07-21 14:46:05 +02:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | (true, true) => ()
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^ no value can reach this
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-arm-statics.rs:2:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-arm-statics.rs:40:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
LL | Some(Some(EAST)) => (),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ---------------- matches all the relevant values
|
2024-07-21 14:46:05 +02:00
|
|
|
...
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | Some(Some(East)) => (),
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^ no value can reach this
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/match-arm-statics.rs:60:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2024-07-24 08:40:04 +02:00
|
|
|
LL | Foo { bar: Some(EAST), baz: NewBool(false) } => ()
|
2024-08-19 20:51:21 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no value can reach this
|
2024-07-24 08:40:04 +02:00
|
|
|
|
|
2024-08-19 20:51:21 +02:00
|
|
|
note: multiple earlier patterns match some of the same values
|
2024-07-24 08:40:04 +02:00
|
|
|
--> $DIR/match-arm-statics.rs:60:9
|
|
|
|
|
|
|
2024-07-21 14:46:05 +02:00
|
|
|
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) } => (),
|
2018-08-08 14:28:26 +02:00
|
|
|
LL | Foo { bar: Some(EAST), baz: NewBool(false) } => ()
|
2024-07-24 08:40:04 +02:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ collectively making this unreachable
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|
|