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
This is by design; the for _ A { i: 3 }.iter() { version is parsing the A (by itself) as the iterator, with the following { the start of the body of the loop. This is important to allow things like
let iter = ...;for _ in iter { ...}
without requiring disambiguating parens: for _ in (iter) { ... }. We chose this arrangement because we felt that for _ in identifier { ... } and if identifer { ... } (etc.) were more common than constructing a struct directly in the iterator/condition.
http://is.gd/4PtH5V
The text was updated successfully, but these errors were encountered: