Skip to content

Commit bca1c3c

Browse files
committed
Add test for issue-58951
1 parent f690098 commit bca1c3c

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+
// run-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)