blob: e47364fb06d3b9bd6849ceb57c4b2c01c8e8fd0f [file] [log] [blame]
error: useless use of `vec!`
--> tests/ui/useless_vec.rs:8:26
|
LL | let _some_variable = vec![
| __________________________^
LL | |
LL | | 1, 2, // i'm here to stay
LL | | 3, 4, // but this one going away ;-;
LL | | ]; // that is life anyways
| |_____^
|
= note: `-D clippy::useless-vec` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::useless_vec)]`
help: you can use an array directly
|
LL ~ let _some_variable = [1, 2, // i'm here to stay
LL ~ 3, 4]; // that is life anyways
|
error: aborting due to 1 previous error