Skip to content

Commit 51875e3

Browse files
committed
Add additional test from rust issue number 91068
1 parent 18bb8c6 commit 51875e3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// build-pass
2+
3+
trait Trait {
4+
type Type;
5+
}
6+
7+
impl<T> Trait for T {
8+
type Type = ();
9+
}
10+
11+
fn f<'a, 'b>(_: <&'a &'b () as Trait>::Type)
12+
where
13+
'a: 'a,
14+
'b: 'b,
15+
{
16+
}
17+
18+
fn g<'a, 'b>() {
19+
f::<'a, 'b>(());
20+
}
21+
22+
fn main() {}

0 commit comments

Comments
 (0)