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