-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
29 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ mod tests { | |
fn should_lint() {} | ||
|
||
const SHOULD_ALSO_LINT: usize = 1; | ||
|
||
macro_rules! should_not_lint { | ||
() => {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
error: an item was found after the testing module | ||
--> $DIR/items_after_test_module.rs:18:1 | ||
error: items were found after the testing module | ||
--> $DIR/items_after_test_module.rs:13:1 | ||
| | ||
LL | fn should_lint() {} | ||
| ^^^^^^^^^^^^^^^^^^^ | ||
LL | / mod tests { | ||
LL | | #[test] | ||
LL | | fn hi() {} | ||
LL | | } | ||
... | | ||
LL | | () => {}; | ||
LL | | } | ||
| |_^ | ||
| | ||
= help: move the item to before the testing module was defined | ||
= help: move the items to before the testing module was defined | ||
= note: `-D clippy::items-after-test-module` implied by `-D warnings` | ||
|
||
error: an item was found after the testing module | ||
--> $DIR/items_after_test_module.rs:20:1 | ||
| | ||
LL | const SHOULD_ALSO_LINT: usize = 1; | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: move the item to before the testing module was defined | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to previous error | ||
|