1 The associated type used was not defined in the trait.
3 Erroneous code example:
10 type Foo = T1<F=i32>; // error: associated type `F` not found for `T1`
17 // error: Baz is used but not declared
18 fn return_bool(&self, _: &Self::Bar, _: &Self::Baz) -> bool;
22 Make sure that you have defined the associated type in the trait body.
23 Also, verify that you used the right trait or you didn't misspell the
24 associated type name. Example:
31 type Foo = T1<Bar=i32>; // ok!
37 type Baz; // we declare `Baz` in our trait.
39 // and now we can use it here:
40 fn return_bool(&self, _: &Self::Bar, _: &Self::Baz) -> bool;