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
#![warn(clippy::explicit_into_iter_loop)]fnmain(){// Issue #4958fn_takes_iterator<T>(iterator:&T)wherefor<'a>&'aT:IntoIterator<Item = &'aString>,{for _ in iterator {}}structT;implIntoIteratorfor&T{typeItem = ();typeIntoIter = std::vec::IntoIter<Self::Item>;fninto_iter(self) -> Self::IntoIter{unimplemented!()}}letmut t = T;// No suggestion for this.// We'd have to suggest `for _ in *rr {}` which is less clear.let rr = &&t;for()in rr.into_iter(){}}
Summary
Version
Error output
Backtrace
The text was updated successfully, but these errors were encountered: