mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 15:32:06 +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. |
||
---|---|---|
.. | ||
auxiliary | ||
align.rs | ||
autoderef.rs | ||
borrow-after-move.rs | ||
borrow-after-move.stderr | ||
box-fnonce.rs | ||
by-value-trait-object-safety-rpass.rs | ||
by-value-trait-object-safety-withdefault.rs | ||
by-value-trait-object-safety.rs | ||
by-value-trait-object-safety.stderr | ||
double-move.rs | ||
double-move.stderr | ||
issue-30276-feature-flagged.rs | ||
issue-30276-feature-flagged.stderr | ||
issue-30276.rs | ||
issue-30276.stderr | ||
issue-50940-with-feature.rs | ||
issue-50940-with-feature.stderr | ||
issue-50940.rs | ||
issue-50940.stderr | ||
issue-67981.rs | ||
issue-67981.stderr | ||
reference-unsized-locals.rs | ||
rust-call.rs | ||
rust-call.stderr | ||
simple-unsized-locals.rs | ||
suggest-borrow.rs | ||
suggest-borrow.stderr | ||
unsized-exprs2.rs | ||
unsized-exprs2.stderr | ||
unsized-exprs3.rs | ||
unsized-exprs3.stderr | ||
unsized-exprs-rpass.rs | ||
unsized-exprs.rs | ||
unsized-exprs.stderr | ||
unsized-index.rs | ||
unsized-locals-using-unsized-fn-params.rs | ||
unsized-locals-using-unsized-fn-params.stderr | ||
unsized-parameters.rs |