summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/tests_outside_test_module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/tests_outside_test_module.rs')
-rw-r--r--src/tools/clippy/tests/ui/tests_outside_test_module.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/tests_outside_test_module.rs b/src/tools/clippy/tests/ui/tests_outside_test_module.rs
index d53c692b7..0abde4a57 100644
--- a/src/tools/clippy/tests/ui/tests_outside_test_module.rs
+++ b/src/tools/clippy/tests/ui/tests_outside_test_module.rs
@@ -8,6 +8,8 @@ fn main() {
// Should lint
#[test]
fn my_test() {}
+//~^ ERROR: this function marked with #[test] is outside a #[cfg(test)] module
+//~| NOTE: move it to a testing module marked with #[cfg(test)]
#[cfg(test)]
mod tests {