Closed
Description
#39002 landed Debug
implementations for a number of derived types in collections, but imposes overly strict requirements. For example, for std::collections::hash_map::Keys
:
impl<'a, K: Debug, V: Debug> Debug for Keys<'a, K, V> { /* ... */ }
Given that only the keys are printed, we should only require K: Debug
, not also V: Debug
(unless I'm mistaken?).