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