Skip to content

Commit

Permalink
Add a regression test for #53457
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Jun 3, 2019
1 parent 7840a0b commit 41dd21a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/ui/impl-trait/issue-53457.rs
@@ -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 41dd21a

Please sign in to comment.