Files
rust/tests/ui/rfcs/rfc-0000-never_patterns/ICE-130779-never-arm-no-oatherwise-block.rs
Shunpoco 0385dd4719 Fix ICE-130779
Signed-off-by: Shunpoco <tkngsnsk313320@gmail.com>
2025-01-12 15:21:24 +00:00

13 lines
289 B
Rust

#![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
}
}