2024-02-28 07:17:14 -06:00
|
|
|
//@compile-flags: -Zdeduplicate-diagnostics=yes
|
|
|
|
|
2020-10-21 07:47:34 -05:00
|
|
|
#![feature(custom_inner_attributes)]
|
|
|
|
#![clippy::msrv = "invalid.version"]
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
2020-10-21 07:47:34 -05:00
|
|
|
|
|
|
|
fn main() {}
|
2022-10-21 16:35:39 -05:00
|
|
|
|
|
|
|
#[clippy::msrv = "invalid.version"]
|
2023-07-28 14:35:48 -05:00
|
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
2022-10-21 16:35:39 -05:00
|
|
|
fn outer_attr() {}
|
|
|
|
|
|
|
|
mod multiple {
|
|
|
|
#![clippy::msrv = "1.40"]
|
|
|
|
#![clippy::msrv = "=1.35.0"]
|
|
|
|
#![clippy::msrv = "1.10.1"]
|
2023-10-19 09:59:44 -05:00
|
|
|
//~^ ERROR: `clippy::msrv` is defined multiple times
|
2022-10-21 16:35:39 -05:00
|
|
|
|
|
|
|
mod foo {
|
2024-08-09 08:00:24 -05:00
|
|
|
#![clippy::msrv = "1.0"]
|
2022-10-21 16:35:39 -05:00
|
|
|
#![clippy::msrv = "1.0.0"]
|
2023-10-19 09:59:44 -05:00
|
|
|
//~^ ERROR: `clippy::msrv` is defined multiple times
|
2022-10-21 16:35:39 -05:00
|
|
|
}
|
|
|
|
}
|