]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-50411.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-50411.rs
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
7 // compile-pass
8
9 fn main() {
10     let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
11 }