Suggest defining type parameter when appropriate

```
error[E0412]: cannot find type `T` in this scope
 --> file.rs:3:12
  |
3 | impl Trait<T> for Struct {}
  |     -      ^ not found in this scope
  |     |
  |     help: you might be missing a type parameter: `<T>`
```

Fix #64298.
This commit is contained in:
Esteban Küber 2020-01-21 23:01:21 -08:00
parent 8ad83afe5b
commit 697fdc568e
12 changed files with 178 additions and 66 deletions

View file

@ -2,7 +2,9 @@ error[E0412]: cannot find type `DeviceId` in this scope
--> $DIR/issue-58712.rs:6:20
|
LL | impl<H> AddrVec<H, DeviceId> {
| ^^^^^^^^ not found in this scope
| - ^^^^^^^^ not found in this scope
| |
| help: you might be missing a type parameter: `, DeviceId`
error[E0412]: cannot find type `DeviceId` in this scope
--> $DIR/issue-58712.rs:8:29