2 Checks for type parameters which are positioned inconsistently between
3 a type definition and impl block. Specifically, a parameter in an impl
4 block which has the same name as a parameter in the type def, but is in
8 Type parameters are determined by their position rather than name.
9 Naming type parameters inconsistently may cause you to refer to the
13 This lint only applies to impl blocks with simple generic params, e.g.
14 `A`. If there is anything more complicated, such as a tuple, it will be
23 // inside the impl, B refers to Foo::A
24 impl<B, A> Foo<B, A> {}
32 impl<A, B> Foo<A, B> {}