about summary refs log tree commit diff
path: root/compiler/rustc_interface/src/errors.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-08-25 15:59:59 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-08-26 02:23:25 +0000
commitbac0e556f008f5853d13fd98b859348b5ba813a9 (patch)
tree38adc221085a77f4c28551bcbfe603cf1eb83b7f /compiler/rustc_interface/src/errors.rs
parent120c24dab5806d458513b399151a411cb367697f (diff)
downloadrust-bac0e556f008f5853d13fd98b859348b5ba813a9.tar.gz
rust-bac0e556f008f5853d13fd98b859348b5ba813a9.zip
On let binding type point to type parameter that introduced unmet bound
On the following example, point at `String` instead of the whole type:

```
error[E0277]: the trait bound `String: Copy` is not satisfied
  --> $DIR/own-bound-span.rs:14:24
   |
LL |     let _: <S as D>::P<String>;
   |                        ^^^^^^ the trait `Copy` is not implemented for `String`
   |
note: required by a bound in `D::P`
  --> $DIR/own-bound-span.rs:4:15
   |
LL |     type P<T: Copy>;
   |               ^^^^ required by this bound in `D::P`
```
Diffstat (limited to 'compiler/rustc_interface/src/errors.rs')
0 files changed, 0 insertions, 0 deletions