mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-12 16:45:37 +00:00
17 lines
344 B
Rust
17 lines
344 B
Rust
// MIR for `adt` after built
|
|
|
|
fn adt() -> Onion {
|
|
let mut _0: Onion;
|
|
let mut _1: i32;
|
|
let mut _2: Foo;
|
|
let mut _3: Bar;
|
|
|
|
bb0: {
|
|
_1 = const 1_i32;
|
|
_2 = Foo { a: const 1_i32, b: const 2_i32 };
|
|
_3 = Bar::Foo(move _2, _1);
|
|
_0 = Onion { neon: ((_3 as variant#0).1: i32) };
|
|
return;
|
|
}
|
|
}
|