mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
23 lines
420 B
Rust
23 lines
420 B
Rust
//@compile-flags: --test
|
|
#![allow(unused)]
|
|
#![warn(clippy::items_after_test_module)]
|
|
|
|
fn main() {}
|
|
|
|
fn should_not_lint() {}
|
|
|
|
#[allow(dead_code)]
|
|
#[allow(unused)] // Some attributes to check that span replacement is good enough
|
|
#[allow(clippy::allow_attributes)]
|
|
#[cfg(test)]
|
|
mod tests {
|
|
#[test]
|
|
fn hi() {}
|
|
}
|
|
|
|
fn should_lint() {}
|
|
|
|
const SHOULD_ALSO_LINT: usize = 1;
|
|
macro_rules! should_not_lint {
|
|
() => {};
|
|
}
|