6efddac288
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. |
||
---|---|---|
.. | ||
exclusive-range-patterns-2021.rs | ||
exclusive-range-patterns-2021.stderr | ||
issue-54505-no-literals.fixed | ||
issue-54505-no-literals.rs | ||
issue-54505-no-literals.stderr | ||
issue-54505-no-std.rs | ||
issue-54505-no-std.stderr | ||
issue-54505.fixed | ||
issue-54505.rs | ||
issue-54505.stderr | ||
issue-73553-misinterp-range-literal.rs | ||
issue-73553-misinterp-range-literal.stderr | ||
range-1.rs | ||
range-1.stderr | ||
range-inclusive-pattern-precedence.fixed | ||
range-inclusive-pattern-precedence.rs | ||
range-inclusive-pattern-precedence.stderr | ||
range-inclusive-pattern-precedence2.rs | ||
range-inclusive-pattern-precedence2.stderr | ||
range-pattern-out-of-bounds-issue-68972.rs | ||
range-pattern-out-of-bounds-issue-68972.stderr | ||
range_traits-1.rs | ||
range_traits-1.stderr | ||
range_traits-2.rs | ||
range_traits-2.stderr | ||
range_traits-3.rs | ||
range_traits-3.stderr | ||
range_traits-4.rs | ||
range_traits-5.rs | ||
range_traits-6.rs | ||
range_traits-6.stderr | ||
range_traits-7.rs |