Skip to content

Commit

Permalink
Rollup merge of rust-lang#91457 - steffahn:additional_test_from_91068…
Browse files Browse the repository at this point in the history
…, r=jackh726

Add additional test from rust issue number 91068

see rust-lang#91068

r? ``@jackh726``
  • Loading branch information
matthiaskrgr authored Dec 2, 2021
2 parents fbfa003 + b77ed83 commit d5fc7cf
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/test/ui/fn/implied-bounds-unnorm-associated-type-2.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit d5fc7cf

Please sign in to comment.