rust/tests/ui/generic-associated-types/missing-where-clause-on-tra...

12 lines
181 B
Rust

//@ check-fail
trait Foo {
type Assoc<'a, 'b>;
}
impl Foo for () {
type Assoc<'a, 'b> = () where 'a: 'b;
//~^ impl has stricter requirements than trait
}
fn main() {}