]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/issue-87429-2.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / issue-87429-2.rs
1 // Derived from `issue-87429`. A test that ensures that using bound vars in the
2 // predicates in the param env when checking that an associated type satisfies
3 // its bounds does not cause us to not be able to use the bounds on the parameters.
4
5 // check-pass
6
7 #![feature(generic_associated_types)]
8
9 trait Family {
10     type Member<'a, C: Eq>: for<'b> MyBound<'b, C>;
11 }
12
13 trait MyBound<'a, C> { }
14 impl<'a, C: Eq> MyBound<'a, C> for i32 { }
15
16 impl Family for () {
17     type Member<'a, C: Eq> = i32;
18 }
19
20 fn main() {}