@@ -20,58 +20,66 @@ LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
2020error: large array defined as const
2121 --> tests/ui/large_const_arrays.rs:12:1
2222 |
23+ LL | const FOO_COMPUTED: [u32; 1_000 * 100] = [0u32; 1_000 * 100];
24+ | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25+ | |
26+ | help: make this a static item: `static`
27+
28+ error: large array defined as const
29+ --> tests/ui/large_const_arrays.rs:13:1
30+ |
2331LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000];
2432 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2533 | |
2634 | help: make this a static item: `static`
2735
2836error: large array defined as const
29- --> tests/ui/large_const_arrays.rs:21 :5
37+ --> tests/ui/large_const_arrays.rs:23 :5
3038 |
3139LL | pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
3240 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3341 | |
3442 | help: make this a static item: `static`
3543
3644error: large array defined as const
37- --> tests/ui/large_const_arrays.rs:22 :5
45+ --> tests/ui/large_const_arrays.rs:24 :5
3846 |
3947LL | const BAR: [u32; 1_000_000] = [0u32; 1_000_000];
4048 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4149 | |
4250 | help: make this a static item: `static`
4351
4452error: large array defined as const
45- --> tests/ui/large_const_arrays.rs:23 :5
53+ --> tests/ui/large_const_arrays.rs:25 :5
4654 |
4755LL | pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000];
4856 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4957 | |
5058 | help: make this a static item: `static`
5159
5260error: large array defined as const
53- --> tests/ui/large_const_arrays.rs:24 :5
61+ --> tests/ui/large_const_arrays.rs:26 :5
5462 |
5563LL | const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000];
5664 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5765 | |
5866 | help: make this a static item: `static`
5967
6068error: large array defined as const
61- --> tests/ui/large_const_arrays.rs:25 :5
69+ --> tests/ui/large_const_arrays.rs:27 :5
6270 |
6371LL | pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000];
6472 | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6573 | |
6674 | help: make this a static item: `static`
6775
6876error: large array defined as const
69- --> tests/ui/large_const_arrays.rs:26 :5
77+ --> tests/ui/large_const_arrays.rs:28 :5
7078 |
7179LL | const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000];
7280 | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7381 | |
7482 | help: make this a static item: `static`
7583
76- error: aborting due to 9 previous errors
84+ error: aborting due to 10 previous errors
7785
0 commit comments