rust/tests/ui/generic-associated-types/mismatched-where-clause-reg...

13 lines
197 B
Rust

trait Foo {
type T<'a1, 'b1>
where
'a1: 'b1;
}
impl Foo for () {
type T<'a2, 'b2> = () where 'b2: 'a2;
//~^ ERROR impl has stricter requirements than trait
}
fn main() {}