Indicate origin of where type parameter for uninferred types

This commit is contained in:
Ohad Ravid 2019-12-13 19:54:18 +01:00
parent 12307b3b08
commit 8a4632dec6
28 changed files with 97 additions and 41 deletions

View file

@ -2,7 +2,7 @@ error[E0282]: type annotations needed
--> $DIR/missing-type-parameter.rs:4:5
|
LL | foo();
| ^^^ cannot infer type for type parameter `X`
| ^^^ cannot infer type for type parameter `X` declared on the function `foo`
error: aborting due to previous error