blob: 710dc0acda7e92526968dbe488b800ca3c0ad606 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//@ run-pass
#![allow(dead_code)]
// This used to cause an ICE because the retslot for the "return" had the wrong type
fn testcase<'a>() -> Box<dyn Iterator<Item=usize> + 'a> {
return Box::new((0..3).map(|i| { return i; }));
}
fn main() {
}
|