mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
23 lines
611 B
Rust
23 lines
611 B
Rust
#![feature(custom_inner_attributes)]
|
|
#![clippy::msrv = "invalid.version"]
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
|
|
|
fn main() {}
|
|
|
|
#[clippy::msrv = "invalid.version"]
|
|
//~^ ERROR: `invalid.version` is not a valid Rust version
|
|
fn outer_attr() {}
|
|
|
|
mod multiple {
|
|
#![clippy::msrv = "1.40"]
|
|
#![clippy::msrv = "=1.35.0"]
|
|
//~^ ERROR: `msrv` is defined multiple times
|
|
#![clippy::msrv = "1.10.1"]
|
|
//~^ ERROR: `msrv` is defined multiple times
|
|
|
|
mod foo {
|
|
#![clippy::msrv = "1"]
|
|
#![clippy::msrv = "1.0.0"]
|
|
//~^ ERROR: `msrv` is defined multiple times
|
|
}
|
|
}
|