2023-04-12 13:17:26 -05:00
|
|
|
//@compile-flags: --test
|
2023-03-31 02:06:39 -05:00
|
|
|
#![allow(unused)]
|
|
|
|
#![warn(clippy::items_after_test_module)]
|
|
|
|
|
2023-04-28 13:40:47 -05:00
|
|
|
// Nothing here should lint, as `tests` is an imported module (that has no body).
|
|
|
|
|
2023-03-31 02:06:39 -05:00
|
|
|
fn main() {}
|
|
|
|
|
|
|
|
fn should_not_lint() {}
|
|
|
|
|
2023-04-28 13:23:05 -05:00
|
|
|
#[path = "auxiliary/tests.rs"]
|
2023-03-31 02:06:39 -05:00
|
|
|
#[cfg(test)]
|
2023-04-27 09:43:51 -05:00
|
|
|
mod tests; // Should not lint
|
2023-03-31 02:06:39 -05:00
|
|
|
|
2023-04-28 13:40:47 -05:00
|
|
|
fn should_not_lint2() {}
|
2023-03-31 02:06:39 -05:00
|
|
|
|
2023-04-28 13:40:47 -05:00
|
|
|
const SHOULD_ALSO_NOT_LINT: usize = 1;
|
2023-03-31 02:06:39 -05:00
|
|
|
macro_rules! should_not_lint {
|
|
|
|
() => {};
|
|
|
|
}
|