summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr')
-rw-r--r--src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr b/src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr
new file mode 100644
index 000000000..923cded5e
--- /dev/null
+++ b/src/tools/clippy/tests/ui-toml/too_large_for_stack/useless_vec.stderr
@@ -0,0 +1,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 previous error
+