rust/tests/ui/specialization/min_specialization
Esteban Küber 6efddac288 Provide more context on derived obligation error primary label
Expand the primary span of E0277 when the immediate unmet bound is not what the user wrote:

```
error[E0277]: the trait bound `i32: Bar` is not satisfied
 --> f100.rs:6:6
  |
6 |     <i32 as Foo>::foo();
  |      ^^^ the trait `Bar` is not implemented for `i32`, which is required by `i32: Foo`
  |
help: this trait has no implementations, consider adding one
 --> f100.rs:2:1
  |
2 | trait Bar {}
  | ^^^^^^^^^
note: required for `i32` to implement `Foo`
 --> f100.rs:3:14
  |
3 | impl<T: Bar> Foo for T {}
  |         ---  ^^^     ^
  |         |
  |         unsatisfied trait bound introduced here
```

Fix #40120.
2024-01-30 21:28:18 +00:00
..
auxiliary
bad-const-wf-doesnt-specialize.rs Remove track_errors entirely 2024-01-23 15:23:22 +00:00
bad-const-wf-doesnt-specialize.stderr Remove track_errors entirely 2024-01-23 15:23:22 +00:00
dyn-trait-assoc-types.rs
dyn-trait-assoc-types.stderr
impl_specialization_trait.rs
impl_specialization_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl-on-nonexisting.rs
impl-on-nonexisting.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
implcit-well-formed-bounds.rs
issue-79224.rs
issue-79224.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
repeated_projection_type.rs
repeated_projection_type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
repeating_lifetimes.rs
repeating_lifetimes.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
repeating_param.rs
repeating_param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
spec-iter.rs
spec-marker-supertraits.rs
spec-marker-supertraits.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
spec-reference.rs
specialization_marker.rs
specialization_marker.stderr
specialization_super_trait.rs
specialization_super_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization_trait.rs
specialization_trait.stderr
specialize_nothing.rs
specialize_nothing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialize_on_marker.rs
specialize_on_spec_trait.rs
specialize_on_static.rs
specialize_on_static.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialize_on_trait.rs
specialize_on_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialize_on_type_error.rs
specialize_on_type_error.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialize_with_generalize_lifetimes.rs
specialize_with_generalize_lifetimes.stderr
specialize-associated-type.rs