Skip to content

there should be warning or error when mutating const #59307

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
abbychau opened this issue Mar 20, 2019 · 2 comments
Closed

there should be warning or error when mutating const #59307

abbychau opened this issue Mar 20, 2019 · 2 comments

Comments

@abbychau
Copy link

https://gist.github.com/08f01df0252e9fa272ad5dd0e4bb70e7

please refer to S.x += 1; to the above code.

@petrochenkov
Copy link
Contributor

Similar issues - rust-lang/rust-clippy#829, #55721, #40543

@jonas-schievink
Copy link
Contributor

Seems like a duplicate of #55721

@oli-obk oli-obk closed this as completed Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants