mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
14 lines
203 B
Rust
14 lines
203 B
Rust
// build-pass
|
|
// compile-flags: -Zsave-analysis
|
|
enum Enum2 {
|
|
Variant8 { _field: bool },
|
|
}
|
|
|
|
impl Enum2 {
|
|
fn new_variant8() -> Enum2 {
|
|
Self::Variant8 { _field: true }
|
|
}
|
|
}
|
|
|
|
fn main() {}
|