We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Both of these loops don't typecheck, although it should be deducable what the type of u is:
u
iter x() -> int { put 1; put 2; } fn main() { for each u in x() { log_err u == 1; } for u in ~[1, 2, 3] { log_err u == 2; } }