Add additional test from rust issue number 91068
This commit is contained in:
parent
18bb8c61a9
commit
51875e3d5a
1 changed files with 22 additions and 0 deletions
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 @@
|
||||||
|
// 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() {}
|
Loading…
Add table
Add a link
Reference in a new issue