mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-30 17:45:30 +00:00
Resolve infered types when complaining about unexpected call type
```
error[E0618]: expected function, found `{integer}`
--> $DIR/call-block.rs:2:13
|
LL | let _ = {42}();
| ^^^^--
| |
| call expression requires function
```
instead of
```
error[E0618]: expected function, found `_`
--> $DIR/call-block.rs:2:13
|
LL | let _ = {42}();
| ^^^^--
| |
| call expression requires function
```
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.