]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-50411.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.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=4
7 // build-pass
8
9 fn main() {
10 let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
11 }