]> git.proxmox.com Git - rustc.git/blob - src/tools/clippy/tests/ui/tests_outside_test_module.stderr
New upstream version 1.74.1+dfsg1
[rustc.git] / src / tools / clippy / tests / ui / tests_outside_test_module.stderr
1 error: this function marked with #[test] is outside a #[cfg(test)] module
2 --> $DIR/tests_outside_test_module.rs:10:1
3 |
4 LL | fn my_test() {}
5 | ^^^^^^^^^^^^^^^
6 |
7 = note: move it to a testing module marked with #[cfg(test)]
8 = note: `-D clippy::tests-outside-test-module` implied by `-D warnings`
9 = help: to override `-D warnings` add `#[allow(clippy::tests_outside_test_module)]`
10
11 error: aborting due to previous error
12