mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
18 lines
226 B
Rust
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() {}
|