Inconsistent "overflow evaluating the requirement" error for adding impl in another crate #77446
Labels
A-coherence
Area: Coherence
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
S-has-bisection
Status: a bisection has been found for this issue
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
(lib.rs)
(main.rs)
I expected this code to compile without any issue or a clear error message why I cannot implment that
AsExpression
there, but instead I got a compilation error:As an intresting side note: This happens for the following impl:
removing it results in a successful compilation.
Meta
rustc --version --verbose
:rustc 1.48.0-nightly (fc2daaae6 2020-09-28)
The text was updated successfully, but these errors were encountered: