]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
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
6a06907d 6// compile-flags:-Zmir-opt-level=4
60c5eb7d 7// build-pass
a1dfa0c6
XL
8
9fn main() {
10 let _ = (0 .. 1).filter(|_| [1].iter().all(|_| true)).count();
11}