]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/large_stack_arrays.stderr
New upstream version 1.52.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / large_stack_arrays.stderr
CommitLineData
f20569fa
XL
1error: allocating a local array larger than 512000 bytes
2 --> $DIR/large_stack_arrays.rs:17:9
3 |
4LL | [0u32; 20_000_000],
5 | ^^^^^^^^^^^^^^^^^^
6 |
7 = note: `-D clippy::large-stack-arrays` implied by `-D warnings`
8 = help: consider allocating on the heap with `vec![0u32; 20_000_000].into_boxed_slice()`
9
10error: allocating a local array larger than 512000 bytes
11 --> $DIR/large_stack_arrays.rs:18:9
12 |
13LL | [S { data: [0; 32] }; 5000],
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15 |
16 = help: consider allocating on the heap with `vec![S { data: [0; 32] }; 5000].into_boxed_slice()`
17
18error: allocating a local array larger than 512000 bytes
19 --> $DIR/large_stack_arrays.rs:19:9
20 |
21LL | [Some(""); 20_000_000],
22 | ^^^^^^^^^^^^^^^^^^^^^^
23 |
24 = help: consider allocating on the heap with `vec![Some(""); 20_000_000].into_boxed_slice()`
25
26error: allocating a local array larger than 512000 bytes
27 --> $DIR/large_stack_arrays.rs:20:9
28 |
29LL | [E::T(0); 5000],
30 | ^^^^^^^^^^^^^^^
31 |
32 = help: consider allocating on the heap with `vec![E::T(0); 5000].into_boxed_slice()`
33
34error: aborting due to 4 previous errors
35