Skip to content

Commit 3412412

Browse files
committed
Add test for issue 30867
1 parent 65c2d4c commit 3412412

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ check-pass
2+
#![crate_type = "lib"]
3+
4+
trait Unary<T> {}
5+
impl<T, U, F: Fn(T) -> U> Unary<T> for F {}
6+
fn unary<F: for<'a> Unary<&'a T>, T>() {}
7+
8+
pub fn test<F: for<'a> Fn(&'a i32) -> &'a i32>() {
9+
unary::<F, i32>()
10+
}

0 commit comments

Comments
 (0)