mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 23:20:39 +00:00
40 lines
616 B
Rust
40 lines
616 B
Rust
#![warn(clippy::mixed_attributes_style)]
|
|
#![allow(clippy::duplicated_attributes)]
|
|
|
|
#[allow(unused)] //~ ERROR: item has both inner and outer attributes
|
|
fn foo1() {
|
|
#![allow(unused)]
|
|
}
|
|
|
|
#[allow(unused)]
|
|
#[allow(unused)]
|
|
fn foo2() {}
|
|
|
|
fn foo3() {
|
|
#![allow(unused)]
|
|
#![allow(unused)]
|
|
}
|
|
|
|
/// linux
|
|
//~^ ERROR: item has both inner and outer attributes
|
|
fn foo4() {
|
|
//! windows
|
|
}
|
|
|
|
/// linux
|
|
/// windows
|
|
fn foo5() {}
|
|
|
|
fn foo6() {
|
|
//! linux
|
|
//! windows
|
|
}
|
|
|
|
#[allow(unused)] //~ ERROR: item has both inner and outer attributes
|
|
mod bar {
|
|
#![allow(unused)]
|
|
}
|
|
|
|
fn main() {
|
|
// test code goes here
|
|
}
|