]>
git.proxmox.com Git - rustc.git/blob - 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.
6 // compile-flags:-Zmir-opt-level=4
10 let _
= (0 .. 1).filter(|_
| [1].iter().all(|_
| true)).count();