Files
rust/tests/ui/items_after_test_module/root_module.rs
2025-02-15 13:38:42 +01:00

24 lines
424 B
Rust

#![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 {
//~^ items_after_test_module
#[test]
fn hi() {}
}
fn should_lint() {}
const SHOULD_ALSO_LINT: usize = 1;
macro_rules! should_lint {
() => {};
}