summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr
blob: 5d289db8534bba5d6467c0e759f6e01f4006e9e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
error: useless use of `vec!`
  --> $DIR/useless_vec.rs:4:13
   |
LL |     let x = vec![0u8; 500];
   |             ^^^^^^^^^^^^^^ help: you can use an array directly: `[0u8; 500]`
   |
   = note: `-D clippy::useless-vec` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::useless_vec)]`

error: aborting due to 1 previous error