Skip to content

Commit 41dd21a

Browse files
committed
Add a regression test for #53457
1 parent 7840a0b commit 41dd21a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/ui/impl-trait/issue-53457.rs

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// run-pass
2+
3+
#![feature(existential_type)]
4+
5+
existential type X: Clone;
6+
7+
fn bar<F: Fn(&i32) + Clone>(f: F) -> F {
8+
f
9+
}
10+
11+
fn foo() -> X {
12+
bar(|x| ())
13+
}
14+
15+
fn main() {}

0 commit comments

Comments
 (0)