diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-01-21 23:01:21 -0800 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-01-26 10:57:18 -0800 |
| commit | 697fdc568e28fbb376567eda4edb2c2a05db68de (patch) | |
| tree | 2353388fac15725d1de0ef61d3c729dda69ba9ff /src/test/ui/issues | |
| parent | 8ad83afe5bcfa983a24b6f720c9ef389350f414b (diff) | |
| download | rust-697fdc568e28fbb376567eda4edb2c2a05db68de.tar.gz rust-697fdc568e28fbb376567eda4edb2c2a05db68de.zip | |
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.
Diffstat (limited to 'src/test/ui/issues')
| -rw-r--r-- | src/test/ui/issues/issue-58712.stderr | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/ui/issues/issue-58712.stderr b/src/test/ui/issues/issue-58712.stderr index 6164ad7ee19..87c16aa993b 100644 --- a/src/test/ui/issues/issue-58712.stderr +++ b/src/test/ui/issues/issue-58712.stderr @@ -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 |
