<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/parser/recover/missing-dot-on-if-condition-expression-fixable.fixed, branch beta</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=beta</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=beta'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-11-16T20:03:31+00:00</updated>
<entry>
<title>Increase accuracy of `if` condition misparse suggestion</title>
<updated>2024-11-16T20:03:31+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-14T20:29:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04fe8391775683e58d861f28678bf80940c91f44'/>
<id>urn:sha1:04fe8391775683e58d861f28678bf80940c91f44</id>
<content type='text'>
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`
  --&gt; $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) {}
   |                              +
```
</content>
</entry>
</feed>
