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
I tried this code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1478c821bdd7d9e135ef3c752c1e2250
I expected to see this happen: code compiles successfully, just like it does without closure: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bd2d963a5d0241a6272e9a39ac29aa0c
Instead, this happened: compilation error
The text was updated successfully, but these errors were encountered:
Changing let to_call = |n| { to let to_call = |n: &mut _| { makes it compile, so this is a duplicate of #41078.
let to_call = |n| {
let to_call = |n: &mut _| {
Sorry, something went wrong.
No branches or pull requests
I tried this code:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=1478c821bdd7d9e135ef3c752c1e2250
I expected to see this happen: code compiles successfully, just like it does without closure:
https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=bd2d963a5d0241a6272e9a39ac29aa0c
Instead, this happened: compilation error
The text was updated successfully, but these errors were encountered: