2018-10-20 16:18:17 -04:00
|
|
|
// 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.
|
|
|
|
|
|
2021-03-04 10:21:13 -03:00
|
|
|
//@ compile-flags:-Zmir-opt-level=4
|
2019-10-29 00:00:00 +00:00
|
|
|
//@ build-pass
|
2018-10-20 16:18:17 -04:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
|
|
|
|
|
}
|