implementing From<<ForeignTy as ToOwned>::Owned> for LocalTy
, errors with conflicting implementation
#107514
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-coherence
Area: Coherence
A-traits
Area: Trait system
C-bug
Category: This is a bug.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
Compiling it, I got these errors:
It seems that only structs defined in external crates trigger this error. This results in no errors about
fn from()
not being defined or its signature being wrong, but there is an error about other functions being defined that are not part ofFrom
.Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: