Rollup merge of #61499 - varkor:issue-53457, r=oli-obk

Add regression test for existential type ICE #53457

Closes #53457.
This commit is contained in:
Mazdak Farrokhzad 2019-06-04 04:48:31 +02:00 committed by GitHub
commit 5baa58ea5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
20 changed files with 15 additions and 0 deletions

View File

@ -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() {}