Skip to content
Permalink
Browse files

Add a regression test for #53457

  • Loading branch information...
varkor committed Jun 3, 2019
1 parent 7840a0b commit 41dd21a9bc5a8e69b5d2fd5d158c8f87a97d3e58
Showing with 15 additions and 0 deletions.
  1. +15 −0 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.
You can’t perform that action at this time.