1 error: large array defined as const
2 --> $DIR/large_const_arrays.rs:12:1
4 LL | pub(crate) const FOO_PUB_CRATE: [u32; 1_000_000] = [0u32; 1_000_000];
5 | ^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 | help: make this a static item: `static`
9 = note: `-D clippy::large-const-arrays` implied by `-D warnings`
11 error: large array defined as const
12 --> $DIR/large_const_arrays.rs:13:1
14 LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
15 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17 | help: make this a static item: `static`
19 error: large array defined as const
20 --> $DIR/large_const_arrays.rs:14:1
22 LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000];
23 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 | help: make this a static item: `static`
27 error: large array defined as const
28 --> $DIR/large_const_arrays.rs:23:5
30 LL | pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
31 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33 | help: make this a static item: `static`
35 error: large array defined as const
36 --> $DIR/large_const_arrays.rs:24:5
38 LL | const BAR: [u32; 1_000_000] = [0u32; 1_000_000];
39 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 | help: make this a static item: `static`
43 error: large array defined as const
44 --> $DIR/large_const_arrays.rs:25:5
46 LL | pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000];
47 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49 | help: make this a static item: `static`
51 error: large array defined as const
52 --> $DIR/large_const_arrays.rs:26:5
54 LL | const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000];
55 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57 | help: make this a static item: `static`
59 error: large array defined as const
60 --> $DIR/large_const_arrays.rs:27:5
62 LL | pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000];
63 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65 | help: make this a static item: `static`
67 error: large array defined as const
68 --> $DIR/large_const_arrays.rs:28:5
70 LL | const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000];
71 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73 | help: make this a static item: `static`
75 error: aborting due to 9 previous errors