about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-09-09 00:28:20 +0200
committerGitHub <noreply@github.com>2023-09-09 00:28:20 +0200
commit69044a169353d3e4f10d1ef4a901136aa0837521 (patch)
treed466beb4b64044bbf81ec5b6026edab1478cec0e /compiler/rustc_interface/src/errors.rs
parentb33ac52106c78cf7ad499dbe8ba7d0f54dafdadf (diff)
parenta0e0a3261e5f8d4515621d90dc2a1e377eb19483 (diff)
downloadrust-69044a169353d3e4f10d1ef4a901136aa0837521.tar.gz
rust-69044a169353d3e4f10d1ef4a901136aa0837521.zip
Rollup merge of #115662 - ShE3py:E0220-note, r=compiler-errors
Improve "associated type not found" diagnostics

```rs
use core::ops::Deref;

fn foo<T>() where T: Deref<Output = u32> {}
```

Before:
```
error[E0220]: associated type `Output` not found for `Deref`
 --> E0220.rs:5:28
  |
5 | fn foo<T>() where T: Deref<Output = u32> {}
  |                            ^^^^^^ associated type `Output` not found
```

After:
```
error[E0220]: associated type `Output` not found for `Deref`
 --> E0220.rs:5:28
  |
5 | fn foo<T>() where T: Deref<Output = u32> {}
  |                            ^^^^^^ help: `Deref` has the following associated type: `Target`
```

---

`@rustbot` label +A-diagnostics +D-papercut
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions