rust/tests/ui/items_after_test_module/imported_module.rs

18 lines
272 B
Rust
Raw Normal View History

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)]
fn main() {}
fn should_not_lint() {}
#[cfg(test)]
mod tests; // Should not lint
2023-03-31 09:06:39 +02:00
fn should_lint() {}
const SHOULD_ALSO_LINT: usize = 1;
macro_rules! should_not_lint {
() => {};
}