Add additional test from rust issue number 91068

This commit is contained in:
Frank Steffahn 2021-12-02 17:46:57 +01:00
parent 18bb8c61a9
commit 51875e3d5a

View file

@ -0,0 +1,22 @@
// build-pass
trait Trait {
type Type;
}
impl<T> Trait for T {
type Type = ();
}
fn f<'a, 'b>(_: <&'a &'b () as Trait>::Type)
where
'a: 'a,
'b: 'b,
{
}
fn g<'a, 'b>() {
f::<'a, 'b>(());
}
fn main() {}