about summary refs log tree commit diff
path: root/src/test/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-24 16:13:14 +0200
committerGitHub <noreply@github.com>2019-07-24 16:13:14 +0200
commite933f547934f8e01ac9e214b784991f1266e582f (patch)
treef9072de5f85f835e7b7f1057b0a7f2d34dbe7669 /src/test/debuginfo/enum-thinlto.rs
parentefdcce1955864c2d0da57f425d2f2d070757c190 (diff)
parentf22bc2d3ff650c3f0e5d492d18235d79ebdec230 (diff)
downloadrust-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/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions