mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-11 22:02:55 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
12 lines
439 B
Text
12 lines
439 B
Text
error: this function marked with #[test] is outside a #[cfg(test)] module
|
|
--> $DIR/tests_outside_test_module.rs:10:1
|
|
|
|
|
LL | fn my_test() {}
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: move it to a testing module marked with #[cfg(test)]
|
|
= note: `-D clippy::tests-outside-test-module` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::tests_outside_test_module)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|