]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-22346.rs
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-22346.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 // This used to cause an ICE because the retslot for the "return" had the wrong type
6 fn testcase<'a>() -> Box<dyn Iterator<Item=usize> + 'a> {
7     return Box::new((0..3).map(|i| { return i; }));
8 }
9
10 fn main() {
11 }