<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/parser/recover/missing-dot-on-statement-expression.stderr, branch perf-tmp</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=perf-tmp'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2024-12-21T02:46:33+00:00</updated>
<entry>
<title>Detect missing `.` in method chain in let bindings and statements</title>
<updated>2024-12-21T02:46:33+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-11-16T00:07:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1ce0fa98c7766dc9e168b92ff9bc4e0df4fcaaef'/>
<id>urn:sha1:1ce0fa98c7766dc9e168b92ff9bc4e0df4fcaaef</id>
<content type='text'>
On parse errors where an ident is found where one wasn't expected, see if the next elements might have been meant as method call or field access.

```
error: expected one of `.`, `;`, `?`, `else`, or an operator, found `map`
  --&gt; $DIR/missing-dot-on-statement-expression.rs:7:29
   |
LL |     let _ = [1, 2, 3].iter()map(|x| x);
   |                             ^^^ expected one of `.`, `;`, `?`, `else`, or an operator
   |
help: you might have meant to write a method call
   |
LL |     let _ = [1, 2, 3].iter().map(|x| x);
   |                             +
```
</content>
</entry>
</feed>
