rust/tests/ui/reachable/unreachable-loop-patterns.stderr

16 lines
507 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error: unreachable pattern
2024-07-27 09:08:16 +00:00
--> $DIR/unreachable-loop-patterns.rs:16:9
2018-08-08 12:28:26 +00:00
|
2018-11-20 22:49:48 +00:00
LL | for _ in unimplemented!() as Void {}
| ^ matches no values because `Void` is uninhabited
2018-08-08 12:28:26 +00: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-07-27 09:08:16 +00:00
--> $DIR/unreachable-loop-patterns.rs:3:9
2018-08-08 12:28:26 +00:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00