rust/tests/ui/offset-of
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 major test improvements 2023-04-21 02:45:48 -07:00
offset-of-arg-count.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-arg-count.stderr Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-builtin.rs Make offset_of field parsing use metavariable which handles any spacing 2024-01-02 22:18:35 +00:00
offset-of-builtin.stderr Make offset_of field parsing use metavariable which handles any spacing 2024-01-02 22:18:35 +00:00
offset-of-dst-field.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-dst-field.stderr Provide more context on derived obligation error primary label 2024-01-30 21:28:18 +00:00
offset-of-enum.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-enum.stderr Update based on wesleywiser review 2023-10-31 23:41:40 +00:00
offset-of-inference.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-inference.stderr Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-must-use.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-must-use.stderr Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-output-type.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-output-type.stderr Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-private.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-private.stderr Support enum variants in offset_of! 2023-10-31 23:25:54 +00:00
offset-of-self.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-self.stderr Make offset_of field parsing use metavariable which handles any spacing 2024-01-02 22:18:35 +00:00
offset-of-tuple-nested.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-tuple.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-tuple.stderr Make offset_of field parsing use metavariable which handles any spacing 2024-01-02 22:18:35 +00:00
offset-of-unsized.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-unstable-with-feature.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-unstable.rs Stabilize simple offset_of 2024-01-19 20:38:51 +00:00
offset-of-unstable.stderr Bless tests 2024-01-13 12:46:58 -05:00