mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +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. |
||
---|---|---|
.. | ||
binary-minus-without-space.rs | ||
binary-op-on-double-ref.fixed | ||
binary-op-on-double-ref.rs | ||
binary-op-on-double-ref.stderr | ||
binary-op-on-fn-ptr-eq.rs | ||
binary-op-suggest-deref.rs | ||
binary-op-suggest-deref.stderr | ||
binop-bitxor-str.rs | ||
binop-bitxor-str.stderr | ||
binop-consume-args.rs | ||
binop-consume-args.stderr | ||
binop-fail-3.rs | ||
binop-logic-float.rs | ||
binop-logic-float.stderr | ||
binop-logic-int.rs | ||
binop-logic-int.stderr | ||
binop-move-semantics.rs | ||
binop-move-semantics.stderr | ||
binop-mul-bool.rs | ||
binop-mul-bool.stderr | ||
binop-mul-i32-f32.rs | ||
binop-mul-i32-f32.stderr | ||
binop-panic.rs | ||
binop-typeck.rs | ||
binop-typeck.stderr | ||
binops-issue-22743.rs | ||
binops.rs | ||
borrow-suggestion-109352-2.rs | ||
borrow-suggestion-109352-2.stderr | ||
borrow-suggestion-109352.fixed | ||
borrow-suggestion-109352.rs | ||
borrow-suggestion-109352.stderr | ||
eq-arr.rs | ||
eq-arr.stderr | ||
eq-vec.rs | ||
eq-vec.stderr | ||
false-binop-caused-by-missing-semi.fixed | ||
false-binop-caused-by-missing-semi.rs | ||
false-binop-caused-by-missing-semi.stderr | ||
issue-3820.rs | ||
issue-3820.stderr | ||
issue-25916.rs | ||
issue-28837.rs | ||
issue-28837.stderr | ||
issue-77910-1.rs | ||
issue-77910-1.stderr | ||
issue-77910-2.rs | ||
issue-77910-2.stderr | ||
issue-93927.rs | ||
issue-93927.stderr | ||
operator-multidispatch.rs | ||
operator-overloading.rs | ||
placement-syntax.rs | ||
placement-syntax.stderr | ||
shift-various-bad-types.rs | ||
shift-various-bad-types.stderr | ||
structured-compare.rs |