mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
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. |
||
---|---|---|
.. | ||
bad-copy-cond.rs | ||
bad-copy-cond.stderr | ||
bad-sized-cond.rs | ||
bad-sized-cond.stderr | ||
basic.rs | ||
basic.stderr | ||
binder-defaults-112547.rs | ||
binder-defaults-112547.stderr | ||
binder-defaults-118697.rs | ||
binder-defaults-118697.stderr | ||
binder-defaults-119489.rs | ||
binder-defaults-119489.stderr | ||
bounds-on-type-binders.rs | ||
bounds-on-type-binders.stderr | ||
capture-late-ct-in-anon.rs | ||
capture-late-ct-in-anon.stderr | ||
disqualifying-object-candidates.rs | ||
drop-impl-pred.no.stderr | ||
drop-impl-pred.rs | ||
drop-impl-pred.yes.stderr | ||
fail.rs | ||
fail.stderr | ||
foreach-partial-eq.rs | ||
foreach-partial-eq.stderr | ||
late-bound-in-anon-ct.rs | ||
late-bound-in-anon-ct.stderr | ||
method-probe.rs | ||
method-probe.stderr | ||
missing-assoc-item.rs | ||
missing-assoc-item.stderr | ||
nested-apit-mentioning-outer-bound-var.rs | ||
nested-apit-mentioning-outer-bound-var.stderr | ||
object-lifetime-default-for-late.rs | ||
object-lifetime-default-for-late.stderr | ||
on-dyn.rs | ||
on-dyn.stderr | ||
on-ptr.rs | ||
on-ptr.stderr | ||
on-rpit.rs | ||
on-rpit.stderr | ||
placeholders-dont-outlive-static.bad.stderr | ||
placeholders-dont-outlive-static.good.stderr | ||
placeholders-dont-outlive-static.rs | ||
sized-late-bound-issue-114872.rs | ||
sized-late-bound-issue-114872.stderr | ||
supertrait-object-safety.rs | ||
supertrait-object-safety.stderr | ||
type-match-with-late-bound.rs | ||
type-match-with-late-bound.stderr | ||
unifying-placeholders-in-query-response-2.current.stderr | ||
unifying-placeholders-in-query-response-2.next.stderr | ||
unifying-placeholders-in-query-response-2.rs | ||
unifying-placeholders-in-query-response.current.stderr | ||
unifying-placeholders-in-query-response.next.stderr | ||
unifying-placeholders-in-query-response.rs | ||
universe-error1.rs | ||
universe-error1.stderr |