Files
rust/tests/ui/coroutine
Jonathan Brouwer 8c5a762b23 Rollup merge of #163057 - estebank:required-bound-context, r=oli-obk
Use span context for enclosing item(s) of unmet bound

Point at item that introduced an unmet bound and in the case of associated items, their container (trait/impl), without using a span label. This adds bits of code to the diagnostic, without explicitly pointing to it.

```
error[E0277]: cannot add `<T as SubEncoder>::ActualSize` to `<T as SubEncoder>::ActualSize`
  --> $DIR/issue-54108.rs:23:17
   |
LL |     type Size = <Self as SubEncoder>::ActualSize;
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `<T as SubEncoder>::ActualSize + <T as SubEncoder>::ActualSize`
   |
   = help: the trait `Add` is not implemented for `<T as SubEncoder>::ActualSize`
note: required by a bound in `Encoder::Size`
  --> $DIR/issue-54108.rs:8:16
   |
LL | pub trait Encoder {
LL |     type Size: Add<Output = Self::Size>;
   |                ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Encoder::Size`
```

r? @oli-obk
2026-09-21 15:19:26 +02:00
..
2024-12-05 14:14:17 -08:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-04-23 15:09:25 +00:00
2025-06-03 10:52:32 -07:00
2025-06-03 10:52:32 -07:00
2025-09-24 15:02:41 +02:00
2024-08-20 18:33:25 +02:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2024-11-22 11:12:15 -08:00
2024-11-22 11:12:15 -08:00
2026-02-12 15:12:29 +08:00
2025-08-14 18:18:42 +02:00
2024-12-31 15:11:18 +08:00
2024-08-20 18:33:25 +02:00
2025-04-15 11:14:23 +02:00
2024-11-22 11:12:15 -08:00
2026-02-09 15:09:43 +08:00
2024-11-02 16:58:50 +00:00
2024-11-02 16:58:50 +00:00
2026-03-04 08:06:45 +08:00