add MSRV check for repeat_vec_with_capacity (#14126)

changelog: [`repeat_vec_with_capacity`]: add MSRV check
This commit is contained in:
Manish Goregaokar 2025-02-23 15:50:44 +00:00 committed by GitHub
commit 35d5ee0e41
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 34 additions and 4 deletions

View file

@ -37,3 +37,8 @@ fn main() {
from_macro!(Vec::<()>::with_capacity(42));
}
}
#[clippy::msrv = "1.27.0"]
fn msrv_check() {
std::iter::repeat(Vec::<()>::with_capacity(42));
}

View file

@ -37,3 +37,8 @@ fn main() {
from_macro!(Vec::<()>::with_capacity(42));
}
}
#[clippy::msrv = "1.27.0"]
fn msrv_check() {
std::iter::repeat(Vec::<()>::with_capacity(42));
}