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
fn main() { let x = [0u32]; (x as [u32; 1]).0 }
The help message suggests:
help: instead of using tuple indexing, use array indexing: `x as [u32; 1][0]`
The parentheses have gone missing.
This is related to #56714.
The text was updated successfully, but these errors were encountered:
This kind of thing (compare to e.g. #55109) happens when we use the pretty printer to synthesize suggestions.
rust/src/librustc_typeck/check/mod.rs
Lines 3375 to 3377 in d99a320
Sorry, something went wrong.
Rollup merge of rust-lang#56966 - varkor:raw-pointer-deref-parens, r=…
ae6164c
…zackmdavis Correct strings for raw pointer deref and array access suggestions Fixes rust-lang#56714. Fixes rust-lang#56963. r? @zackmdavis
d875fcd
eb24b33
No branches or pull requests
The help message suggests:
The parentheses have gone missing.
This is related to #56714.
The text was updated successfully, but these errors were encountered: