2019-11-24 18:42:22 -08:00
|
|
|
error: missing code example in this documentation
|
2020-11-21 11:08:58 -05:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:19:1
|
2019-05-17 13:39:20 +02:00
|
|
|
|
|
2021-02-13 21:45:15 +01:00
|
|
|
LL | / pub mod module1 {
|
2020-11-21 11:08:58 -05:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
2019-05-17 13:39:20 +02:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-05-17 13:39:20 +02:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:2:9
|
|
|
|
|
|
2020-12-29 23:16:16 -05:00
|
|
|
LL | #![deny(rustdoc::missing_doc_code_examples)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-05-17 13:39:20 +02:00
|
|
|
|
2020-08-21 18:05:51 +02:00
|
|
|
error: missing code example in this documentation
|
2020-11-21 11:08:58 -05:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:37:3
|
2020-08-21 18:05:51 +02:00
|
|
|
|
|
2020-11-21 11:08:58 -05:00
|
|
|
LL | /// doc
|
|
|
|
| ^^^^^^^
|
2020-08-21 18:05:51 +02:00
|
|
|
|
|
|
|
error: missing code example in this documentation
|
2020-11-21 11:08:58 -05:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:49:1
|
2020-08-21 18:05:51 +02:00
|
|
|
|
|
|
|
|
LL | /// Doc
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
|
|
error: missing code example in this documentation
|
2020-11-21 11:08:58 -05:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:56:1
|
2020-08-21 18:05:51 +02:00
|
|
|
|
|
2020-11-21 11:08:58 -05:00
|
|
|
LL | /// Doc
|
|
|
|
| ^^^^^^^
|
2020-08-21 18:05:51 +02:00
|
|
|
|
2019-11-24 18:42:22 -08:00
|
|
|
error: missing code example in this documentation
|
2020-11-21 11:08:58 -05:00
|
|
|
--> $DIR/lint-missing-doc-code-example.rs:63:1
|
2019-05-17 13:39:20 +02:00
|
|
|
|
|
2020-11-21 11:08:58 -05:00
|
|
|
LL | /// Doc
|
|
|
|
| ^^^^^^^
|
2019-05-17 13:39:20 +02:00
|
|
|
|
2020-08-21 18:05:51 +02:00
|
|
|
error: aborting due to 5 previous errors
|
2019-05-17 13:39:20 +02:00
|
|
|
|