rust/tests/crashes/120600-2.rs
2024-04-14 11:21:51 +02:00

14 lines
218 B
Rust

//@ known-bug: #120600
#![feature(never_type, never_type_fallback)]
enum E { Bar(!) }
fn f(a: &E, b: &E) {
match (a, b) {
(E::Bar(a), E::Bar(b)) => { *a == *b; }
_ => {}
}
}
pub fn main() {}