rust/tests/mir-opt/inline/issue_76997_inline_scopes_parenting.rs
2023-01-11 09:32:08 +00:00

8 lines
214 B
Rust

// Tests that MIR inliner can handle `SourceScopeData` parenting correctly. (#76997)
// EMIT_MIR issue_76997_inline_scopes_parenting.main.Inline.after.mir
fn main() {
let f = |x| { let y = x; y };
f(())
}