Skip to content

Commit

Permalink
Rollup merge of rust-lang#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 rust-lang#53457

Closes rust-lang#53457.
  • Loading branch information
Centril authored Jun 4, 2019
2 parents 13d2364 + 1c6dce8 commit 70865fc
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 70865fc

Please sign in to comment.