<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/tests/ui/closures/closure-expected.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-05-29T22:26:54+00:00</updated>
<entry>
<title>Use parenthetical notation for `Fn` traits</title>
<updated>2024-05-29T22:26:54+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2024-05-29T21:42:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e6bd6c2044352d842afb827f1fe0fd6f43c38413'/>
<id>urn:sha1:e6bd6c2044352d842afb827f1fe0fd6f43c38413</id>
<content type='text'>
Always use the `Fn(T) -&gt; R` format when printing closure traits instead of `Fn&lt;(T,), Output = R&gt;`.

Fix #67100:

```
error[E0277]: expected a `Fn()` closure, found `F`
 --&gt; file.rs:6:13
  |
6 |     call_fn(f)
  |     ------- ^ expected an `Fn()` closure, found `F`
  |     |
  |     required by a bound introduced by this call
  |
  = note: wrap the `F` in a closure with no arguments: `|| { /* code */ }`
note: required by a bound in `call_fn`
 --&gt; file.rs:1:15
  |
1 | fn call_fn&lt;F: Fn() -&gt; ()&gt;(f: &amp;F) {
  |               ^^^^^^^^^^ required by this bound in `call_fn`
help: consider further restricting this bound
  |
5 | fn call_any&lt;F: std::any::Any + Fn()&gt;(f: &amp;F) {
  |                              ++++++
```
</content>
</entry>
<entry>
<title>Show number in error message even for one error</title>
<updated>2023-11-24T18:15:52+00:00</updated>
<author>
<name>Nilstrieb</name>
<email>48135649+Nilstrieb@users.noreply.github.com</email>
</author>
<published>2023-11-21T15:44:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=41e8d152dc5abb5a706999ada8b059d3420af8f3'/>
<id>urn:sha1:41e8d152dc5abb5a706999ada8b059d3420af8f3</id>
<content type='text'>
Co-authored-by: Adrian &lt;adrian.iosdev@gmail.com&gt;
</content>
</entry>
<entry>
<title>Pretty print Fn traits in rustc_on_unimplemented</title>
<updated>2023-11-02T20:57:05+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2023-10-05T01:50:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c83f642f12d50dbd998f5064630985306d3021d9'/>
<id>urn:sha1:c83f642f12d50dbd998f5064630985306d3021d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move /src/test to /tests</title>
<updated>2023-01-11T09:32:08+00:00</updated>
<author>
<name>Albert Larsan</name>
<email>74931857+albertlarsan68@users.noreply.github.com</email>
</author>
<published>2023-01-05T08:13:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cf2dff2b1e3fa55fa5415d524200070d0d7aacfe'/>
<id>urn:sha1:cf2dff2b1e3fa55fa5415d524200070d0d7aacfe</id>
<content type='text'>
</content>
</entry>
</feed>
