2020-04-04 12:15:01 -05:00
|
|
|
// MIR for `test` after Inline
|
|
|
|
|
|
|
|
fn test(_1: &dyn X) -> u32 {
|
2023-06-06 08:47:00 -05:00
|
|
|
debug x => _1;
|
|
|
|
let mut _0: u32;
|
|
|
|
let mut _2: &dyn X;
|
2020-04-04 12:15:01 -05:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageLive(_2);
|
2024-07-27 01:36:17 -05:00
|
|
|
_2 = copy _1;
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = <dyn X as X>::y(move _2) -> [return: bb1, unwind unreachable];
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
StorageDead(_2);
|
|
|
|
return;
|
2020-04-04 12:15:01 -05:00
|
|
|
}
|
|
|
|
}
|