blob: 710dc0acda7e92526968dbe488b800ca3c0ad606 [file] [log] [blame]
//@ 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() {
}