]>
Commit | Line | Data |
---|---|---|
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 | 6 | fn testcase<'a>() -> Box<dyn Iterator<Item=usize> + 'a> { |
c34b1796 | 7 | return Box::new((0..3).map(|i| { return i; })); |
85aaf69f | 8 | } |
223e47cc LB |
9 | |
10 | fn main() { | |
223e47cc | 11 | } |