]> git.lizzy.rs Git - rust.git/blob - tests/mir-opt/inline/issue_76997_inline_scopes_parenting.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / mir-opt / inline / issue_76997_inline_scopes_parenting.rs
1 // Tests that MIR inliner can handle `SourceScopeData` parenting correctly. (#76997)
2
3 // EMIT_MIR issue_76997_inline_scopes_parenting.main.Inline.after.mir
4 fn main() {
5     let f = |x| { let y = x; y };
6     f(())
7 }