mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +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 | ||
issue-65419 | ||
issue-51719.rs | ||
issue-51719.stderr | ||
issue-51751.rs | ||
issue-51751.stderr | ||
issue-53249.rs | ||
issue-54752-async-block.rs | ||
issue-54752-async-block.stderr | ||
issue-54974.rs | ||
issue-55324.rs | ||
issue-55809.rs | ||
issue-58885.rs | ||
issue-59001.rs | ||
issue-59972.rs | ||
issue-60518.rs | ||
issue-60655-latebound-regions.rs | ||
issue-60674.rs | ||
issue-60674.stdout | ||
issue-61187.rs | ||
issue-61187.stderr | ||
issue-61986.rs | ||
issue-62009-1.rs | ||
issue-62009-1.stderr | ||
issue-62009-2.rs | ||
issue-62009-2.stderr | ||
issue-62097.rs | ||
issue-62097.stderr | ||
issue-62517-1.rs | ||
issue-62517-2.rs | ||
issue-63388-1.rs | ||
issue-63388-1.stderr | ||
issue-63388-2.rs | ||
issue-63388-2.stderr | ||
issue-63388-3.rs | ||
issue-63388-4.rs | ||
issue-64391-2.rs | ||
issue-64433.rs | ||
issue-64477-2.rs | ||
issue-64477.rs | ||
issue-64964.rs | ||
issue-65159.rs | ||
issue-65159.stderr | ||
issue-65436-raw-ptr-not-send.rs | ||
issue-66695-static-refs.rs | ||
issue-66958-non-copy-infered-type-arg.rs | ||
issue-66958-non-copy-infered-type-arg.stderr | ||
issue-67611-static-mut-refs.rs | ||
issue-67893.rs | ||
issue-67893.stderr | ||
issue-69307-nested.rs | ||
issue-69307.rs | ||
issue-72312.rs | ||
issue-72312.stderr | ||
issue-78600.rs | ||
issue-78654.full.stderr | ||
issue-78654.min.stderr | ||
issue-78654.rs | ||
issue-78938-async-block.rs | ||
issue-78938-async-block.stderr | ||
issue-95307.rs | ||
issue-95307.stderr | ||
issue-102206.rs | ||
issue-102206.stderr | ||
issue-107280.rs | ||
issue-107280.stderr | ||
issue-112225-1.rs | ||
issue-112225-2.rs | ||
issue-112225-2.stderr | ||
non-async-enclosing-span.rs | ||
non-async-enclosing-span.stderr |