mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
dc4d38740e
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`
```