Trait inference is broken for unnamed structs
Open
Nobody has claimed this yet.
A-associated-items
A-trait-system
C-bug
E-help-wanted
S-has-mcve
T-compiler
T-lang
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.2k
- PR merge metrics
- PR metrics pending
Description
I tried this code:
I expected to see this happen: That this works both for structs with named fields as with structs with anonymous fields
Instead, this happened: Works as expected for named fields, but fails to compile for anonymous structs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.