rust/tests/ui/lint/unused/issue-105061-array-lint.stderr
2023-01-14 17:11:05 +08:00

57 lines
1.2 KiB
Plaintext

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