fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
758 B33 linesraw
1error: unnecessary parentheses around index expression
2  --> $DIR/issue-96606.rs:4:17
3   |
4LL |     let _ = arr[(0)];
5   |                 ^ ^
6   |
7note: the lint level is defined here
8  --> $DIR/issue-96606.rs:1:8
9   |
10LL | #[deny(unused)]
11   |        ^^^^^^
12   = note: `#[deny(unused_parens)]` implied by `#[deny(unused)]`
13help: remove these parentheses
14   |
15LL -     let _ = arr[(0)];
16LL +     let _ = arr[0];
17   |
18
19error: unnecessary braces around index expression
20  --> $DIR/issue-96606.rs:5:17
21   |
22LL |     let _ = arr[{0}];
23   |                 ^ ^
24   |
25   = note: `#[deny(unused_braces)]` implied by `#[deny(unused)]`
26help: remove these braces
27   |
28LL -     let _ = arr[{0}];
29LL +     let _ = arr[0];
30   |
31
32error: aborting due to 2 previous errors
33