rust-clippy/tests/ui/min_rust_version_attr.rs

30 lines
550 B
Rust
Raw Normal View History

#![allow(clippy::redundant_clone)]
#![feature(custom_inner_attributes)]
fn main() {}
fn just_under_msrv() {
#![clippy::msrv = "1.42.0"]
let log2_10 = 3.321928094887362;
}
fn meets_msrv() {
#![clippy::msrv = "1.43.0"]
let log2_10 = 3.321928094887362;
}
2020-11-29 11:38:56 +00:00
fn just_above_msrv() {
2021-11-07 18:52:34 +00:00
#![clippy::msrv = "1.44.0"]
let log2_10 = 3.321928094887362;
2020-11-29 11:38:56 +00:00
}
fn no_patch_under() {
#![clippy::msrv = "1.42"]
let log2_10 = 3.321928094887362;
2020-11-29 11:38:56 +00:00
}
fn no_patch_meets() {
#![clippy::msrv = "1.43"]
let log2_10 = 3.321928094887362;
}