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
When using a boolean fold in a pattern guard (match { ... _ if values.iter().fold(false, |p, v| p || v.f()) =>), it suggests any.
This actually isn't applicable in this edge-case, as any requires a mutable-borrow on the iterator, which is completely unavailable in a pattern guard. fold happens to take the iterator by-value, which means it doesn't actually have any alternatives in a pattern guard.