Rollup merge of #63158 - JohnTitor:add-test-for-58951, r=Centril

Add test for issue-58951

Closes #58951

r? @Centril
This commit is contained in:
Pietro Albini 2019-08-01 16:00:28 +02:00 committed by GitHub
commit aaec6dfa47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,10 @@
// check-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() {}