diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-24 16:13:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-24 16:13:14 +0200 |
| commit | e933f547934f8e01ac9e214b784991f1266e582f (patch) | |
| tree | f9072de5f85f835e7b7f1057b0a7f2d34dbe7669 /src/test/ui/thinlto | |
| parent | efdcce1955864c2d0da57f425d2f2d070757c190 (diff) | |
| parent | f22bc2d3ff650c3f0e5d492d18235d79ebdec230 (diff) | |
| download | rust-e933f547934f8e01ac9e214b784991f1266e582f.tar.gz rust-e933f547934f8e01ac9e214b784991f1266e582f.zip | |
Rollup merge of #62772 - estebank:trait-bound, r=matthewjasper
Suggest trait bound on type parameter when it is unconstrained
Given
```
trait Foo { fn method(&self) {} }
fn call_method<T>(x: &T) {
x.method()
}
```
suggest constraining `T` with `Foo`.
Fix #21673, fix #41030.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
