We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
test "const pointers" { const x: u8 = 1; x += 1; // does not give any error const y = &x; y.* += 1; // does not give any error }
until you compile it you get this error:
error: cannot assign to constant y.* += 1; ~~~~^~~~ error: cannot assign to constant x += 1; ~~^~~~
The text was updated successfully, but these errors were encountered:
This issue is a very specific example of #2017. There is no need to track this separately so I will be closing this.
Sorry, something went wrong.
No branches or pull requests
Example:
until you compile it you get this error:
The text was updated successfully, but these errors were encountered: