about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2019-07-17 16:34:13 -0700
committerEsteban Küber <esteban@kuber.com.ar>2019-07-18 11:50:50 -0700
commitf22bc2d3ff650c3f0e5d492d18235d79ebdec230 (patch)
treedd41933b53e5bfc11b6f24dce5b59afca56f3ee9 /src/test/ui/thinlto
parent2eb0bc5e3c52a34b6d62ab0527520c66e4c575bd (diff)
downloadrust-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