Rollup merge of #91457 - steffahn:additional_test_from_91068, r=jackh726

Add additional test from rust issue number 91068

see rust-lang/rust#91068

r? ``@jackh726``
This commit is contained in:
Matthias Krüger 2021-12-02 22:16:15 +01:00 committed by GitHub
commit d5fc7cf2c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
// check-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() {}