rust-clippy/tests/ui/items_after_test_module/root_module.fixed

23 lines
391 B
Rust
Raw Normal View History

2023-03-31 07:06:39 +00:00
#![allow(unused)]
#![warn(clippy::items_after_test_module)]
fn main() {}
fn should_not_lint() {}
fn should_lint() {}
const SHOULD_ALSO_LINT: usize = 1;
macro_rules! should_lint {
() => {};
}
2023-03-31 07:06:39 +00:00
#[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() {}
}