error: calls to `reverse` immediately after creation --> $DIR/reserve_after_initialization.rs:5:5 | LL | / let mut v1: Vec = vec![]; LL | | v1.reserve(10); | |___________________^ help: consider using `Vec::with_capacity(space_hint)`: `let mut v1: Vec = Vec::with_capacity(10);` | = note: `-D clippy::reserve-after-initialization` implied by `-D warnings` error: calls to `reverse` immediately after creation --> $DIR/reserve_after_initialization.rs:10:5 | LL | / let mut v2: Vec = vec![]; LL | | v2.reserve(capacity); | |_________________________^ help: consider using `Vec::with_capacity(space_hint)`: `let mut v2: Vec = Vec::with_capacity(capacity);` error: aborting due to 2 previous errors