Skip to content

Commit aaec6df

Browse files
authored
Rollup merge of rust-lang#63158 - JohnTitor:add-test-for-58951, r=Centril
Add test for issue-58951 Closes rust-lang#58951 r? @Centril
2 parents 810ffe2 + d033e8d commit aaec6df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
#![feature(existential_type)]
3+
4+
existential type A: Iterator;
5+
fn def_a() -> A { 0..1 }
6+
pub fn use_a() {
7+
def_a().map(|x| x);
8+
}
9+
10+
fn main() {}

0 commit comments

Comments
 (0)