summaryrefslogtreecommitdiffstats
path: root/tests/ui/lint/unused/issue-105061-array-lint.stderr
blob: 7eb761aee431f29919371feeb0ec7904b5d28b24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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