mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
18 lines
322 B
Rust
18 lines
322 B
Rust
// MIR for `foo` after built
|
|
|
|
fn foo(_1: Foo) -> usize {
|
|
debug foo => _1;
|
|
let mut _0: usize;
|
|
let _2: Foo;
|
|
let mut _3: isize;
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
_2 = move _1;
|
|
_3 = discriminant(_2);
|
|
_0 = move _3 as usize (IntToInt);
|
|
StorageDead(_2);
|
|
return;
|
|
}
|
|
}
|