Skip to content
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

Incorrect "unnecessary parentheses" warning for &(mut n) #56868

Closed
0e4ef622 opened this issue Dec 16, 2018 · 2 comments
Closed

Incorrect "unnecessary parentheses" warning for &(mut n) #56868

0e4ef622 opened this issue Dec 16, 2018 · 2 comments
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug.

Comments

@0e4ef622
Copy link
Contributor

fn main() {
    Some(&1).map(|&(mut n)| { n = 2; n });
}
@bluss bluss added A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. labels Dec 16, 2018
@matthewjasper
Copy link
Contributor

cc #55342

@Manishearth
Copy link
Member

dupe #56868

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

4 participants