error: unreachable pattern --> $DIR/slice-pattern-const-2.rs:28:9 | LL | FOO => (), | ^^^ | note: the lint level is defined here --> $DIR/slice-pattern-const-2.rs:1:9 | LL | #![deny(unreachable_patterns)] | ^^^^^^^^^^^^^^^^^^^^ error: aborting due to previous error