2024-03-07 17:19:29 +01:00
|
|
|
//@compile-flags: -Zdeduplicate-diagnostics=yes
|
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
#![feature(custom_inner_attributes)]
|
|
|
|
#![clippy::msrv = "invalid.version"]
|
2023-08-24 21:32:12 +02:00
|
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
2020-12-06 15:01:03 +01:00
|
|
|
|
|
|
|
fn main() {}
|
2022-10-23 15:18:45 +02:00
|
|
|
|
|
|
|
#[clippy::msrv = "invalid.version"]
|
2023-08-24 21:32:12 +02:00
|
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
2022-10-23 15:18:45 +02:00
|
|
|
fn outer_attr() {}
|
|
|
|
|
|
|
|
mod multiple {
|
|
|
|
#![clippy::msrv = "1.40"]
|
|
|
|
#![clippy::msrv = "=1.35.0"]
|
|
|
|
#![clippy::msrv = "1.10.1"]
|
2023-11-02 17:35:56 +01:00
|
|
|
//~^ ERROR: `clippy::msrv` is defined multiple times
|
2022-10-23 15:18:45 +02:00
|
|
|
|
|
|
|
mod foo {
|
|
|
|
#![clippy::msrv = "1"]
|
|
|
|
#![clippy::msrv = "1.0.0"]
|
2023-11-02 17:35:56 +01:00
|
|
|
//~^ ERROR: `clippy::msrv` is defined multiple times
|
2022-10-23 15:18:45 +02:00
|
|
|
}
|
|
|
|
}
|