Closed
Description
type_repetition_in_bounds
seems missed generics in types.
#![allow(dead_code)]
#![warn(clippy::type_repetition_in_bounds)]
pub struct Foo<A>(A);
pub struct Bar<A, B> {
a: Foo<A>,
b: Foo<B>,
}
impl<A, B> Unpin for Bar<A, B>
where
Foo<A>: Unpin,
Foo<B>: Unpin, //~ WARN this type has already been used as a bound predicate
{
}