2018-08-08 14:28:26 +02:00
|
|
|
error: unreachable pattern
|
2024-08-28 20:10:26 +02:00
|
|
|
--> $DIR/uninhabited-patterns.rs:30:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2023-11-18 21:39:57 +01:00
|
|
|
LL | Ok(box _) => (),
|
2024-08-20 21:42:48 +02:00
|
|
|
| ^^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2024-08-19 21:08:18 +02:00
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2024-08-28 20:10:26 +02:00
|
|
|
--> $DIR/uninhabited-patterns.rs:4:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2024-08-28 20:10:26 +02:00
|
|
|
--> $DIR/uninhabited-patterns.rs:39:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | Err(Ok(_y)) => (),
|
2024-08-20 21:42:48 +02:00
|
|
|
| ^^^^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
|
2024-07-21 14:46:05 +02:00
|
|
|
|
|
2024-08-19 21:08:18 +02:00
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
error: unreachable pattern
|
2024-08-28 20:10:26 +02:00
|
|
|
--> $DIR/uninhabited-patterns.rs:42:15
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | while let Some(_y) = foo() {
|
2024-08-20 21:42:48 +02:00
|
|
|
| ^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
|
2024-07-21 14:46:05 +02:00
|
|
|
|
|
2024-08-19 21:08:18 +02:00
|
|
|
= note: to learn more about uninhabited types, see https://doc.rust-lang.org/nomicon/exotic-sizes.html#empty-types
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-18 21:39:57 +01:00
|
|
|
error: aborting due to 3 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|