]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/large_const_arrays.stderr
Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06
[rust.git] / src / tools / clippy / tests / ui / large_const_arrays.stderr
1 error: large array defined as const
2   --> $DIR/large_const_arrays.rs:12:1
3    |
4 LL | pub(crate) const FOO_PUB_CRATE: [u32; 1_000_000] = [0u32; 1_000_000];
5    | ^^^^^^^^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |            |
7    |            help: make this a static item: `static`
8    |
9    = note: `-D clippy::large-const-arrays` implied by `-D warnings`
10
11 error: large array defined as const
12   --> $DIR/large_const_arrays.rs:13:1
13    |
14 LL | pub const FOO_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
15    | ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
16    |     |
17    |     help: make this a static item: `static`
18
19 error: large array defined as const
20   --> $DIR/large_const_arrays.rs:14:1
21    |
22 LL | const FOO: [u32; 1_000_000] = [0u32; 1_000_000];
23    | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24    | |
25    | help: make this a static item: `static`
26
27 error: large array defined as const
28   --> $DIR/large_const_arrays.rs:23:5
29    |
30 LL |     pub const BAR_PUB: [u32; 1_000_000] = [0u32; 1_000_000];
31    |     ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32    |         |
33    |         help: make this a static item: `static`
34
35 error: large array defined as const
36   --> $DIR/large_const_arrays.rs:24:5
37    |
38 LL |     const BAR: [u32; 1_000_000] = [0u32; 1_000_000];
39    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40    |     |
41    |     help: make this a static item: `static`
42
43 error: large array defined as const
44   --> $DIR/large_const_arrays.rs:25:5
45    |
46 LL |     pub const BAR_STRUCT_PUB: [S; 5_000] = [S { data: [0; 32] }; 5_000];
47    |     ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
48    |         |
49    |         help: make this a static item: `static`
50
51 error: large array defined as const
52   --> $DIR/large_const_arrays.rs:26:5
53    |
54 LL |     const BAR_STRUCT: [S; 5_000] = [S { data: [0; 32] }; 5_000];
55    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
56    |     |
57    |     help: make this a static item: `static`
58
59 error: large array defined as const
60   --> $DIR/large_const_arrays.rs:27:5
61    |
62 LL |     pub const BAR_S_PUB: [Option<&str>; 200_000] = [Some("str"); 200_000];
63    |     ^^^^-----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64    |         |
65    |         help: make this a static item: `static`
66
67 error: large array defined as const
68   --> $DIR/large_const_arrays.rs:28:5
69    |
70 LL |     const BAR_S: [Option<&str>; 200_000] = [Some("str"); 200_000];
71    |     -----^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
72    |     |
73    |     help: make this a static item: `static`
74
75 error: aborting due to 9 previous errors
76