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
trait Foo { fn foo(&self, mut x: u32) { } }
gives a syntax error on the mut. This wouldn't be allowed (by rustc) for a method without body, but with a body, it's fine.
mut
The text was updated successfully, but these errors were encountered:
anonymous parameters strike again: rust-lang/rfcs#1685 :)
Sorry, something went wrong.
allow mut ident patterns in trait methods
mut ident
9012254
closes #928
matklad
No branches or pull requests
gives a syntax error on the
mut
. This wouldn't be allowed (by rustc) for a method without body, but with a body, it's fine.The text was updated successfully, but these errors were encountered: