os-rust/tests/ui/uninhabited/uninhabited-patterns.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1.1 KiB
Text
Raw Normal View History

2018-08-08 14:28:26 +02:00
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:30:9
2018-08-08 14:28:26 +02:00
|
LL | Ok(box _) => (),
| ^^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
2018-08-08 14:28:26 +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
--> $DIR/uninhabited-patterns.rs:4:9
2018-08-08 14:28:26 +02:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $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)) => (),
| ^^^^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
|
= 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
--> $DIR/uninhabited-patterns.rs:42:15
2018-08-08 14:28:26 +02:00
|
LL | while let Some(_y) = foo() {
| ^^^^^^^^ matches no values because `NotSoSecretlyEmpty` is uninhabited
|
= 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: aborting due to 3 previous errors
2018-08-08 14:28:26 +02:00