2023-12-01 11:21:58 -06:00
|
|
|
error: unit tests in doctest are not executed
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/test_attr_in_doctest.rs:6:5
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
|
LL | /// #[test]
|
|
|
|
| _____^
|
|
|
|
LL | | /// fn should_be_linted() {
|
|
|
|
| |_______________________^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::test-attr-in-doctest` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::test_attr_in_doctest)]`
|
|
|
|
|
|
|
|
error: unit tests in doctest are not executed
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/test_attr_in_doctest.rs:16:5
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
|
LL | /// #[test]
|
|
|
|
| _____^
|
|
|
|
LL | | /// fn should_also_be_linted() {
|
|
|
|
| |____________________________^
|
|
|
|
|
|
|
|
error: unit tests in doctest are not executed
|
2024-02-27 08:25:18 -06:00
|
|
|
--> tests/ui/test_attr_in_doctest.rs:22:5
|
2023-12-01 11:21:58 -06:00
|
|
|
|
|
|
|
|
LL | /// #[test]
|
|
|
|
| _____^
|
|
|
|
LL | | /// fn should_be_linted_too() {
|
|
|
|
| |___________________________^
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|