mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 09:27:25 +00:00
17 lines
227 B
Rust
17 lines
227 B
Rust
#![allow(unused)]
|
|
#![warn(clippy::tests_outside_test_module)]
|
|
|
|
fn main() {
|
|
// test code goes here
|
|
}
|
|
|
|
// Should lint
|
|
#[test]
|
|
fn my_test() {}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
// Should not lint
|
|
#[test]
|
|
fn my_test() {}
|
|
}
|