2018-08-08 07:28:26 -05:00
|
|
|
error: unreachable pattern
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:27:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | &[..] => (),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^
|
|
|
|
|
|
2020-01-22 17:57:38 -06:00
|
|
|
note: the lint level is defined here
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:6:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(unreachable_patterns)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:32:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Ok(box _) => (),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:34:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Err(&[..]) => (),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:41:9
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | Err(Ok(_y)) => (),
|
2018-08-08 07:28:26 -05:00
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: unreachable pattern
|
2019-12-11 08:51:28 -06:00
|
|
|
--> $DIR/uninhabited-patterns.rs:44:15
|
2018-08-08 07:28:26 -05:00
|
|
|
|
|
|
|
|
LL | while let Some(_y) = foo() {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|