Skip to content

Commit

Permalink
Rollup merge of #61499 - varkor:issue-53457, r=oli-obk
Browse files Browse the repository at this point in the history
Add regression test for existential type ICE #53457

Closes #53457.
  • Loading branch information
Centril committed Jun 4, 2019
2 parents 5deaa0a + 1c6dce8 commit 5baa58e
Show file tree
Hide file tree
Showing 20 changed files with 15 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions src/test/ui/impl-trait/issues/issue-53457.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// run-pass

#![feature(existential_type)]

existential type X: Clone;

fn bar<F: Fn(&i32) + Clone>(f: F) -> F {
f
}

fn foo() -> X {
bar(|x| ())
}

fn main() {}

0 comments on commit 5baa58e

Please sign in to comment.