You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: slow_vector_initialization.rs
    path of file: ./repos/rust-clippy/tests/ui
    
    the code of the file until where you have to start completion: //@no-rustfix
use std::iter::repeat;
fn main() {
    resi
    
fn mixed_extend_resize_vector() {
    // Mismatching len
    let mut mismatching_len = Vec::with_capacity(30);
    mismatching_len.extend(repeat(0).take(40));

    // Slow initialization
    let mut resized_vec = Vec::with_capacity(30);
    resized_vec.resize(30, 0);
    //~^ ERROR: slow zero-filling initialization

    let mut extend_vec = Vec::with_capacity(30);
    extend_vec.extend(repeat(0).take(30));
    //~^ ERROR: slow zero-filling initialization
}