2020-02-29 11:41:18 -06:00
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:10:1
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | pub(crate) const FOO_PUB_CRATE: [u32; 1_000_000] = [0u32; 1_000_000];
|
|
|
|
| ^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::large-const-arrays` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:11:1
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
|
|
|
|
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:12:1
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000];
|
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:21:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
|
|
|
|
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:22:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | const BAR: [u32; 1_000_000] = [0u32; 1_000_000];
|
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:23:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000];
|
|
|
|
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:24:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000];
|
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:25:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000];
|
|
|
|
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: large array defined as const
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/large_const_arrays.rs:26:5
|
2020-02-29 11:41:18 -06:00
|
|
|
|
|
|
|
|
LL | const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000];
|
|
|
|
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
| |
|
|
|
|
| help: make this a static item: `static`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|