1 error: unreachable pattern
2 --> $DIR/uninhabited-patterns.rs:37:9
4 LL | &[..] => (), //~ ERROR unreachable pattern
7 note: lint level defined here
8 --> $DIR/uninhabited-patterns.rs:16:9
10 LL | #![deny(unreachable_patterns)]
11 | ^^^^^^^^^^^^^^^^^^^^
13 error: unreachable pattern
14 --> $DIR/uninhabited-patterns.rs:42:9
16 LL | Ok(box _) => (), //~ ERROR unreachable pattern
19 error: unreachable pattern
20 --> $DIR/uninhabited-patterns.rs:44:9
22 LL | Err(&[..]) => (), //~ ERROR unreachable pattern
25 error: unreachable pattern
26 --> $DIR/uninhabited-patterns.rs:51:9
28 LL | Err(Ok(_y)) => (), //~ ERROR unreachable pattern
31 error: unreachable pattern
32 --> $DIR/uninhabited-patterns.rs:54:15
34 LL | while let Some(_y) = foo() {
37 error: aborting due to 5 previous errors