@@ -20,58 +20,66 @@ LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
20
20
error: large array defined as const
21
21
--> tests/ui/large_const_arrays.rs:12:1
22
22
|
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
+ |
23
31
LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000];
24
32
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25
33
| |
26
34
| help: make this a static item: `static`
27
35
28
36
error: large array defined as const
29
- --> tests/ui/large_const_arrays.rs:21 :5
37
+ --> tests/ui/large_const_arrays.rs:23 :5
30
38
|
31
39
LL | pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
32
40
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
41
| |
34
42
| help: make this a static item: `static`
35
43
36
44
error: large array defined as const
37
- --> tests/ui/large_const_arrays.rs:22 :5
45
+ --> tests/ui/large_const_arrays.rs:24 :5
38
46
|
39
47
LL | const BAR: [u32; 1_000_000] = [0u32; 1_000_000];
40
48
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
49
| |
42
50
| help: make this a static item: `static`
43
51
44
52
error: large array defined as const
45
- --> tests/ui/large_const_arrays.rs:23 :5
53
+ --> tests/ui/large_const_arrays.rs:25 :5
46
54
|
47
55
LL | pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000];
48
56
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49
57
| |
50
58
| help: make this a static item: `static`
51
59
52
60
error: large array defined as const
53
- --> tests/ui/large_const_arrays.rs:24 :5
61
+ --> tests/ui/large_const_arrays.rs:26 :5
54
62
|
55
63
LL | const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000];
56
64
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
57
65
| |
58
66
| help: make this a static item: `static`
59
67
60
68
error: large array defined as const
61
- --> tests/ui/large_const_arrays.rs:25 :5
69
+ --> tests/ui/large_const_arrays.rs:27 :5
62
70
|
63
71
LL | pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000];
64
72
| ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
65
73
| |
66
74
| help: make this a static item: `static`
67
75
68
76
error: large array defined as const
69
- --> tests/ui/large_const_arrays.rs:26 :5
77
+ --> tests/ui/large_const_arrays.rs:28 :5
70
78
|
71
79
LL | const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000];
72
80
| -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
73
81
| |
74
82
| help: make this a static item: `static`
75
83
76
- error: aborting due to 9 previous errors
84
+ error: aborting due to 10 previous errors
77
85
0 commit comments