rust/tests/crashes/125888.rs
2024-06-09 10:16:12 +02:00

18 lines
226 B
Rust

//@ known-bug: rust-lang/rust#125888
enum NestedEnum {
First,
Second,
}
enum Enum {
Variant(*const &'a ()),
}
fn foo(x: Enum) {
match x {
Enum::Variant(NestedEnum::Second) => {}
}
}
fn main() {}