mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
04fe839177
Look at the expression that was parsed when trying to recover from a bad `if` condition to determine what was likely intended by the user beyond "maybe this was meant to be an `else` body". ``` error: expected `{`, found `map` --> $DIR/missing-dot-on-if-condition-expression-fixable.rs:4:30 | LL | for _ in [1, 2, 3].iter()map(|x| x) {} | ^^^ expected `{` | help: you might have meant to write a method call | LL | for _ in [1, 2, 3].iter().map(|x| x) {} | + ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |