]>
Commit | Line | Data |
---|---|---|
a1dfa0c6 XL |
1 | // Regression test for #50411: the MIR inliner was causing problems |
2 | // here because it would inline promoted code (which had already had | |
3 | // elaborate-drops invoked on it) and then try to elaboate drops a | |
4 | // second time. Uncool. | |
5 | ||
6 | // compile-flags:-Zmir-opt-level=3 | |
60c5eb7d | 7 | // build-pass |
a1dfa0c6 XL |
8 | |
9 | fn main() { | |
10 | let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count(); | |
11 | } |