blob: 84cc78de35ec8e1ce87408cb673a3cf12884e214 [file] [log] [blame]
#![warn(clippy::repeat_vec_with_capacity)]
#![allow(clippy::manual_repeat_n)]
#![no_std]
use core::iter;
extern crate alloc;
use alloc::vec::Vec;
fn nostd() {
let _: Vec<Vec<u8>> = iter::repeat(Vec::with_capacity(42)).take(123).collect();
//~^ repeat_vec_with_capacity
}