mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 04:39:16 +00:00
18 lines
240 B
Rust
18 lines
240 B
Rust
//@ known-bug: rust-lang/rust#125155
|
|
|
|
enum NestedEnum {
|
|
First,
|
|
Second,
|
|
Third
|
|
}
|
|
enum Enum {
|
|
Variant2(Option<*mut &'a &'b ()>)
|
|
}
|
|
|
|
|
|
fn foo(x: Enum) -> isize {
|
|
match x {
|
|
Enum::Variant2(NestedEnum::Third) => 4,
|
|
}
|
|
}
|