Rollup merge of #136414 - estebank:expected-return-type, r=oli-obk

Shorten error message for callable with wrong return type

```
error: expected `{closure@...}` to return `Ret`, but it returns `Other`
```
instead of
```
error: expected `{closure@...}` to be a closure that returns `Ret`, but it returns `Other`
```
This commit is contained in:
Matthias Krüger 2025-02-02 23:06:55 +01:00 committed by GitHub
commit 5fb7fdb103
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available