summaryrefslogtreecommitdiffstats
path: root/src/test/mir-opt/inline/issue-76997-inline-scopes-parenting.rs
blob: 76d806acc63491e97118171a14b1a2260e33fe94 (plain)
1
2
3
4
5
6
7
// 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(())
}