2018-08-08 14:28:26 +02:00
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $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
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $DIR/uninhabited-patterns.rs:6:9
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $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
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $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
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $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
|
2019-12-11 09:51:28 -05:00
|
|
|
--> $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
|
|
|
|
|