rust/tests/ui/object-safety
Esteban Küber bac0e556f0 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`
```
2023-08-26 02:23:25 +00:00
..
assoc_const_bounds_sized.rs
assoc_const_bounds.rs
assoc_type_bounds2.rs
assoc_type_bounds2.stderr
assoc_type_bounds_sized_others.rs
assoc_type_bounds_sized_others.stderr
assoc_type_bounds_sized_unnecessary.rs
assoc_type_bounds_sized_unnecessary.stderr
assoc_type_bounds_sized_used.rs
assoc_type_bounds_sized_used.stderr
assoc_type_bounds_sized.rs
assoc_type_bounds.rs
assoc_type_bounds.stderr
issue-19538.rs
issue-19538.stderr
issue-102762.rs
issue-102762.stderr
issue-102933.rs
issue-106247.rs
object-safety-associated-consts.curr.stderr
object-safety-associated-consts.object_safe_for_dispatch.stderr
object-safety-associated-consts.rs
object-safety-bounds.rs
object-safety-bounds.stderr
object-safety-by-value-self-use.rs
object-safety-by-value-self-use.stderr
object-safety-by-value-self.rs
object-safety-generics.curr.stderr
object-safety-generics.object_safe_for_dispatch.stderr
object-safety-generics.rs
object-safety-issue-22040.rs
object-safety-issue-22040.stderr
object-safety-mentions-Self.curr.stderr
object-safety-mentions-Self.object_safe_for_dispatch.stderr
object-safety-mentions-Self.rs
object-safety-no-static.curr.stderr
object-safety-no-static.object_safe_for_dispatch.stderr
object-safety-no-static.rs
object-safety-phantom-fn.rs
object-safety-sized-2.curr.stderr
object-safety-sized-2.object_safe_for_dispatch.stderr
object-safety-sized-2.rs
object-safety-sized.curr.stderr
object-safety-sized.object_safe_for_dispatch.stderr
object-safety-sized.rs
object-safety-supertrait-mentions-GAT.rs
object-safety-supertrait-mentions-GAT.stderr
object-safety-supertrait-mentions-Self.rs
object-safety-supertrait-mentions-Self.stderr