summaryrefslogtreecommitdiffstats
path: root/tests/ui-toml/array_size_threshold/array_size_threshold.stderr
blob: ac017b20916dea2b7b6876b53bba0fe7bc1a5c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
error: large array defined as const
  --> $DIR/array_size_threshold.rs:4:1
   |
LL | const ABOVE: [u8; 11] = [0; 11];
   | -----^^^^^^^^^^^^^^^^^^^^^^^^^^^
   | |
   | help: make this a static item: `static`
   |
   = note: `-D clippy::large-const-arrays` implied by `-D warnings`

error: allocating a local array larger than 10 bytes
  --> $DIR/array_size_threshold.rs:4:25
   |
LL | const ABOVE: [u8; 11] = [0; 11];
   |                         ^^^^^^^
   |
   = help: consider allocating on the heap with `vec![0; 11].into_boxed_slice()`
   = note: `-D clippy::large-stack-arrays` implied by `-D warnings`

error: allocating a local array larger than 10 bytes
  --> $DIR/array_size_threshold.rs:8:17
   |
LL |     let above = [0u8; 11];
   |                 ^^^^^^^^^
   |
   = help: consider allocating on the heap with `vec![0u8; 11].into_boxed_slice()`

error: aborting due to 3 previous errors