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:
commit
d5fc7cf2c4
22
src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Normal file
22
src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Normal 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() {}
|
Loading…
x
Reference in New Issue
Block a user