Closed tyranron closed 2 months ago
Related to #387
After #387, the following snippet fails to compile:
#[derive(Debug)] struct AssocType<I: Iterator> { iter: I, elem: Option<I::Item>, }
This happens, because the implied bound Option<I::Item>: Debug is not generated.
Option<I::Item>: Debug
Correct the ContainsGenericsExt::contains_generics() implementations to consider associated types of the type parameter.
ContainsGenericsExt::contains_generics()
Related to #387
Synopsis
After #387, the following snippet fails to compile:
This happens, because the implied bound
Option<I::Item>: Debug
is not generated.Solution
Correct the
ContainsGenericsExt::contains_generics()
implementations to consider associated types of the type parameter.Checklist
Documentation is updated(not required)