2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(dead_code)]
|
2015-03-22 15:13:15 -05:00
|
|
|
// pretty-expanded FIXME #23616
|
|
|
|
|
2015-02-15 06:41:05 -06:00
|
|
|
// This used to cause an ICE because the retslot for the "return" had the wrong type
|
2019-05-28 13:47:21 -05:00
|
|
|
fn testcase<'a>() -> Box<dyn Iterator<Item=usize> + 'a> {
|
2015-03-17 15:33:26 -05:00
|
|
|
return Box::new((0..3).map(|i| { return i; }));
|
2015-02-15 06:41:05 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
}
|