Skip to content

Commit d5fc7cf

Browse files
authored
Rollup merge of #91457 - steffahn:additional_test_from_91068, r=jackh726
Add additional test from rust issue number 91068 see #91068 r? ``@jackh726``
2 parents fbfa003 + b77ed83 commit d5fc7cf

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+
// check-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)