diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2019-07-17 16:34:13 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2019-07-18 11:50:50 -0700 |
| commit | f22bc2d3ff650c3f0e5d492d18235d79ebdec230 (patch) | |
| tree | dd41933b53e5bfc11b6f24dce5b59afca56f3ee9 /src/test/ui/thinlto | |
| parent | 2eb0bc5e3c52a34b6d62ab0527520c66e4c575bd (diff) | |
| download | rust-f22bc2d3ff650c3f0e5d492d18235d79ebdec230.tar.gz rust-f22bc2d3ff650c3f0e5d492d18235d79ebdec230.zip | |
Suggest trait bound on type parameter when it is unconstrained
Given
```
mented on Jan 26, 2015 •
trait Foo { fn method(&self) {} }
fn call_method<T>(x: &T) {
x.method()
}
```
suggest constraining `T` with `Foo`.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
