Skip to content

wrong help: try parenthesizing the first index #41650

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
bjorn3 opened this issue Apr 30, 2017 · 1 comment
Closed

wrong help: try parenthesizing the first index #41650

bjorn3 opened this issue Apr 30, 2017 · 1 comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@bjorn3
Copy link
Member

bjorn3 commented Apr 30, 2017

Code:

pub fn rust_function(x: ((i32, i32), i32)) -> i32 { x.0.0 }

Output:

(...)
help: try parenthesizing the first index
  | pub fn rust_function(x: ((i32, i32), i32)) -> i32 { x.(x.0).0 }
(...)

Expected:

(...)
help: try parenthesizing the first index
  | pub fn rust_function(x: ((i32, i32), i32)) -> i32 { (x.0).0 }
(...)
@TimNN TimNN added the A-diagnostics Area: Messages for errors, warnings, and lints label Apr 30, 2017
@durka
Copy link
Contributor

durka commented Apr 30, 2017

Fixed by #41087.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

4 participants