Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 397 Bytes
// 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
// build-pass (FIXME(62277): could be check-pass?)
fn main() {
let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
You can’t perform that action at this time.