blob: 2a7e730af16ba6e36b04d9d00bf311cd0858b430 [file] [log] [blame]
#![feature(never_patterns)]
#![allow(incomplete_features)]
enum E { A }
fn main() {
match E::A {
! | //~ ERROR: a trailing `|` is not allowed in an or-pattern
//~^ ERROR: mismatched types
if true => {} //~ ERROR: a never pattern is always unreachable
}
}