unrelated trait bound being reported as not satisfied #130949
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Current output
Desired output
Rationale and extra context
the problem is exceptionally bad when the error arises in macro generated code, where the
as Foo
cannot be seen in the diagnostic. the real trait bound is also hidden further when usingdiagnostic::on_unimplemented
:gives:
Other cases
No response
Rust Version
latest stable and nightly, but noticed in my own machine using the following version:
rustc 1.83.0-nightly (6c6d210 2024-09-22)
binary: rustc
commit-hash: 6c6d210
commit-date: 2024-09-22
host: x86_64-unknown-linux-gnu
release: 1.83.0-nightly
LLVM version: 19.1.0
Anything else?
No response
The text was updated successfully, but these errors were encountered: