2023-10-06 10:35:45 -05:00
|
|
|
error: items after a test module
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui/items_after_test_module/root_module.rs:12:1
|
2023-10-06 10:35:45 -05:00
|
|
|
|
|
|
|
|
LL | mod tests {
|
|
|
|
| ^^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | fn should_lint() {}
|
|
|
|
| ^^^^^^^^^^^^^^^^
|
|
|
|
LL |
|
|
|
|
LL | const SHOULD_ALSO_LINT: usize = 1;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
LL | macro_rules! should_lint {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::items-after-test-module` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::items_after_test_module)]`
|
|
|
|
= help: move the items to before the test module was defined
|
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2023-10-06 10:35:45 -05:00
|
|
|
|