Skip to content

Commit

Permalink
Add test for issue-58951
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Jul 31, 2019
1 parent f690098 commit bca1c3c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/existential_types/issue-58951.rs
@@ -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() {}

0 comments on commit bca1c3c

Please sign in to comment.