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
..
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-19 11:32:34 +00:00
2024-01-24 02:53:15 +00:00
2024-01-15 08:44:46 +01:00
2023-11-24 21:04:51 +01:00
2024-01-22 14:35:47 +00:00
2024-01-19 11:32:34 +00:00
2023-11-24 19:15:52 +01:00
2023-12-29 10:01:53 +00:00
2023-10-16 15:50:31 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2024-01-30 21:28:18 +00:00
2023-10-26 17:58:02 +00:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-10-17 01:26:46 +00:00
2024-01-02 15:34:37 -05:00
2023-11-24 21:04:51 +01:00
2023-11-24 19:15:52 +01:00
2024-01-24 02:53:15 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-24 16:57:15 +00:00
2024-01-24 16:57:15 +00:00
2024-01-30 21:28:18 +00:00
2024-01-11 16:54:11 +00:00
2024-01-13 09:59:56 +11:00
2024-01-13 09:59:56 +11:00
2023-11-14 13:13:27 +00:00
2023-11-14 13:13:27 +00:00
2023-12-19 13:35:37 -05:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2024-01-30 21:28:18 +00:00
2023-11-24 19:15:52 +01:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-12-05 19:53:59 +00:00
2024-01-09 21:08:16 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-30 21:28:18 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-11 09:52:25 +00:00
2024-01-11 09:52:25 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-11-24 19:15:52 +01:00
2023-10-20 21:14:01 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-07 18:00:03 +00:00
2024-01-30 21:28:18 +00:00
2023-10-16 15:50:31 +00:00
2023-10-16 15:50:31 +00:00
2023-10-16 15:50:31 +00:00
2023-10-16 15:50:31 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-09 21:08:16 +00:00
2024-01-09 21:08:16 +00:00
2023-11-24 19:15:52 +01:00
2023-12-27 12:51:32 +01:00
2023-12-28 14:53:23 +01:00
2023-10-29 23:55:46 +00:00
2023-11-24 19:15:52 +01:00
2024-01-17 14:23:41 +00:00
2024-01-17 14:23:41 +00:00
2023-11-24 19:15:52 +01:00
2024-01-08 20:30:24 +00:00
2024-01-11 16:54:11 +00:00
2024-01-11 16:54:11 +00:00
2024-01-11 16:54:11 +00:00
2024-01-08 20:30:24 +00:00
2024-01-08 20:30:24 +00:00
2023-12-07 23:00:46 -05:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-11-24 19:15:52 +01:00
2023-10-13 21:01:36 +00:00
2023-11-24 19:15:52 +01:00
2023-11-09 11:32:51 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-11-24 19:15:52 +01:00
2023-12-14 15:22:37 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-12-05 19:53:59 +00:00
2023-12-05 19:53:59 +00:00
2023-12-05 19:53:59 +00:00
2023-12-05 19:53:59 +00:00
2023-11-24 19:15:52 +01:00
2024-01-07 18:00:03 +00:00
2024-01-13 12:46:58 -05:00