You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnx(input:HashSet<usize>){for i in input.iter(){}}
This gives compile time error:
no method named iter found for type std::collections::hash::set::HashSet<std::collections::hash::set::HashSet<usize>> in the current scope
fnx(input:HashSet<HashSet<usize>>){for i in input.iter(){}}
I tested this code on multiple versions of rust using play.rust-lang.org and all versions seem to be affected in the same way. I also noticed that using a HashMap results to the same issue, and in both cases not only iter() is gone, but no single method seems to work. (I only tested iter(), capacity() and clear())
The text was updated successfully, but these errors were encountered:
This compiles just fine:
This gives compile time error:
no method named
iter
found for typestd::collections::hash::set::HashSet<std::collections::hash::set::HashSet<usize>>
in the current scopeI tested this code on multiple versions of rust using play.rust-lang.org and all versions seem to be affected in the same way. I also noticed that using a HashMap results to the same issue, and in both cases not only iter() is gone, but no single method seems to work. (I only tested
iter(), capacity() and clear()
)The text was updated successfully, but these errors were encountered: