about summary refs log tree commit diff
path: root/src/test/ui/thinlto
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-07-18 05:07:36 +0000
committerbors <bors@rust-lang.org>2019-07-18 05:07:36 +0000
commit2c3b05d90d4dee879a0d9f33e721c930b087d7d1 (patch)
tree8117600bdf54f8e50b5226db76a490e75f39f77c /src/test/ui/thinlto
parentefb74579150a6ea0ad99a8568aa02a1aa23f6dd5 (diff)
parent6b9580b651fa67ca7cf536ceab995d185202a114 (diff)
downloadrust-2c3b05d90d4dee879a0d9f33e721c930b087d7d1.tar.gz
rust-2c3b05d90d4dee879a0d9f33e721c930b087d7d1.zip
Auto merge of #62669 - estebank:suggest-assoc-type, r=cramertj
Suggest assoc type on type not found in trait method definition

Given

```
trait A {
    type Bla;
    fn to_bla(&self) -> Bla;
}
```
suggest using `Self::Bla`:

```
error[E0412]: cannot find type `Bla` in this scope
  --> file.rs:3:25
   |
LL |     fn to_bla(&self) -> Bla;
   |                         ^^^ help: try: `Self::Bla`
```

Fix #62650.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions