Skip to content

Commit

Permalink
Rollup merge of rust-lang#63158 - JohnTitor:add-test-for-58951, r=Cen…
Browse files Browse the repository at this point in the history
…tril

Add test for issue-58951

Closes rust-lang#58951

r? @Centril
  • Loading branch information
pietroalbini authored Aug 1, 2019
2 parents 810ffe2 + d033e8d commit aaec6df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/existential_types/issue-58951.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit aaec6df

Please sign in to comment.