summary refs log tree commit diff
path: root/src/test/ui/issues/issue-50411.rs
blob: 1ba47d3b932ef70171f87e442d6d9fbdc506bc57 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Regression test for #50411: the MIR inliner was causing problems
// here because it would inline promoted code (which had already had
// elaborate-drops invoked on it) and then try to elaboate drops a
// second time. Uncool.

// compile-flags:-Zmir-opt-level=3
// compile-pass

fn main() {
    let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
}