]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-22346.rs
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-22346.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(dead_code)]
c34b1796
AL
3// pretty-expanded FIXME #23616
4
85aaf69f 5// This used to cause an ICE because the retslot for the "return" had the wrong type
dc9dc135 6fn testcase<'a>() -> Box<dyn Iterator<Item=usize> + 'a> {
c34b1796 7 return Box::new((0..3).map(|i| { return i; }));
85aaf69f 8}
223e47cc
LB
9
10fn main() {
223e47cc 11}