Add test for issue-58951

This commit is contained in:
Yuki Okushi 2019-07-31 20:48:20 +09:00
parent f690098e6d
commit bca1c3cfae

View File

@ -0,0 +1,10 @@
// run-pass
#![feature(existential_type)]
existential type A: Iterator;
fn def_a() -> A { 0..1 }
pub fn use_a() {
def_a().map(|x| x);
}
fn main() {}