Debug impl for HashMap::keys should not require values to be Debug #41924
Labels
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
#39002 landed
Debug
implementations for a number of derived types in collections, but imposes overly strict requirements. For example, forstd::collections::hash_map::Keys
:Given that only the keys are printed, we should only require
K: Debug
, not alsoV: Debug
(unless I'm mistaken?).The text was updated successfully, but these errors were encountered: