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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
dyn-trait-assoc-types.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-on-nonexisting.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl-on-nonexisting.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
impl_specialization_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
impl_specialization_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
implcit-well-formed-bounds.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
issue-79224.rs Work around the fact that check_mod_type_wf may spuriously return ErrorGuaranteed, even if that error is only emitted by check_modwitem_types 2023-10-25 12:04:54 +00:00
issue-79224.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
repeated_projection_type.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeated_projection_type.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
repeating_lifetimes.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeating_lifetimes.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
repeating_param.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
repeating_param.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
spec-iter.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
spec-marker-supertraits.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
spec-marker-supertraits.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
spec-reference.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialization_marker.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialization_marker.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialization_super_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialization_super_trait.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialization_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialization_trait.stderr Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialize-associated-type.rs Normalize consistently for specializations 2023-05-05 16:19:18 +01:00
specialize_nothing.rs Disallow (min) specialization imps with no items 2023-05-05 16:19:18 +01:00
specialize_nothing.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
specialize_on_marker.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialize_on_spec_trait.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
specialize_on_static.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Move /src/test to /tests 2023-01-11 09:32:08 +00:00
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 Normalize consistently for specializations 2023-05-05 16:19:18 +01:00
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 Report nicer lifetime errors for specialization 2023-05-05 22:19:56 +01:00
specialize_with_generalize_lifetimes.stderr Report nicer lifetime errors for specialization 2023-05-05 22:19:56 +01:00