Contradictory error message: trait is simultaneously implemented and not #105048
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-traits
Area: Trait system
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
The following code gives somewhat contradictory error message:
???
Including only one of the
impl
lines produces a more reasonableoverflow evaluating the requirement `B: A`
instead.This happens both on stable 1.65.0, beta 1.66.0-beta.2 (2022-11-20 004070), and nightly 1.67.0-nightly (2022-11-28 2585bc).
Nightly suggests adding
#![feature(trivial_bounds)]
, but the contradictory error message still exists with that (however pointed at thedyn
rather than theimpl
s).The text was updated successfully, but these errors were encountered: