rust/src/test/ui/uninhabited/uninhabited-patterns.stderr

39 lines
833 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:27:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | &[..] => (),
2018-08-08 14:28:26 +02:00
| ^^^^^
|
note: lint level defined here
--> $DIR/uninhabited-patterns.rs:6:9
2018-08-08 14:28:26 +02:00
|
LL | #![deny(unreachable_patterns)]
| ^^^^^^^^^^^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:32:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | Ok(box _) => (),
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:34:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | Err(&[..]) => (),
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:41:9
2018-08-08 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | Err(Ok(_y)) => (),
2018-08-08 14:28:26 +02:00
| ^^^^^^^^^^^
error: unreachable pattern
--> $DIR/uninhabited-patterns.rs:44:15
2018-08-08 14:28:26 +02:00
|
LL | while let Some(_y) = foo() {
| ^^^^^^^^
error: aborting due to 5 previous errors