Skip to content

Derefs of newtypes give the wrong mutability #2980

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikomatsakis opened this issue Jul 21, 2012 · 0 comments
Closed

Derefs of newtypes give the wrong mutability #2980

nikomatsakis opened this issue Jul 21, 2012 · 0 comments
Assignees
Labels
A-lifetimes Area: Lifetimes / regions

Comments

@nikomatsakis
Copy link
Contributor

Derefs of newtypes should inherit the mutability of their container, just as record fields do. I have a fix for this but haven't committed it yet.

@ghost ghost assigned nikomatsakis Jul 21, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Jul 14, 2023
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Dependency upgrade resulting from `cargo update`.

Co-authored-by: tautschnig <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions
Projects
None yet
Development

No branches or pull requests

1 participant