error: unnecessary parentheses around type --> $DIR/issue-105061-array-lint.rs:5:13 | LL | let _x: ([u32; 3]); | ^ ^ | note: the lint level is defined here --> $DIR/issue-105061-array-lint.rs:2:9 | LL | #![deny(warnings)] | ^^^^^^^^ = note: `#[deny(unused_parens)]` implied by `#[deny(warnings)]` help: remove these parentheses | LL - let _x: ([u32; 3]); LL + let _x: [u32; 3]; | error: unnecessary parentheses around const expression --> $DIR/issue-105061-array-lint.rs:6:18 | LL | let _y: [u8; (3)]; | ^ ^ | help: remove these parentheses | LL - let _y: [u8; (3)]; LL + let _y: [u8; 3]; | error: unnecessary parentheses around type --> $DIR/issue-105061-array-lint.rs:7:13 | LL | let _z: ([u8; (3)]); | ^ ^ | help: remove these parentheses | LL - let _z: ([u8; (3)]); LL + let _z: [u8; (3)]; | error: unnecessary parentheses around const expression --> $DIR/issue-105061-array-lint.rs:7:19 | LL | let _z: ([u8; (3)]); | ^ ^ | help: remove these parentheses | LL - let _z: ([u8; (3)]); LL + let _z: ([u8; 3]); | error: aborting due to 4 previous errors