2019-11-24 18:42:22 -08:00
|
|
|
error: missing code example in this documentation
|
2019-05-17 13:39:20 +02:00
|
|
|
--> $DIR/doc-without-codeblock.rs:1:1
|
|
|
|
|
|
2022-09-12 20:10:35 +02:00
|
|
|
LL | / #![feature(rustdoc_missing_doc_code_examples)]
|
|
|
|
LL | | #![deny(rustdoc::missing_doc_code_examples)]
|
2019-05-17 13:39:20 +02:00
|
|
|
LL | |
|
|
|
|
LL | | /// Some docs.
|
|
|
|
... |
|
2021-10-20 15:57:44 +02:00
|
|
|
LL | | }
|
2019-05-17 13:39:20 +02:00
|
|
|
LL | | }
|
|
|
|
| |_^
|
2018-10-09 16:46:29 +02:00
|
|
|
|
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2022-09-12 20:10:35 +02:00
|
|
|
--> $DIR/doc-without-codeblock.rs:2:9
|
2018-10-09 16:46:29 +02:00
|
|
|
|
|
2020-12-29 23:16:16 -05:00
|
|
|
LL | #![deny(rustdoc::missing_doc_code_examples)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-10-09 16:46:29 +02:00
|
|
|
|
2019-11-24 18:42:22 -08:00
|
|
|
error: missing code example in this documentation
|
2022-09-12 20:10:35 +02:00
|
|
|
--> $DIR/doc-without-codeblock.rs:8:1
|
2018-10-09 16:46:29 +02:00
|
|
|
|
|
|
|
|
LL | /// And then, the princess died.
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2019-11-24 18:42:22 -08:00
|
|
|
error: missing code example in this documentation
|
2022-09-12 20:10:35 +02:00
|
|
|
--> $DIR/doc-without-codeblock.rs:11:5
|
2018-10-09 16:46:29 +02:00
|
|
|
|
|
|
|
|
LL | /// Or maybe not because she saved herself!
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-11-21 11:08:58 -05:00
|
|
|
error: missing code example in this documentation
|
2022-09-12 20:10:35 +02:00
|
|
|
--> $DIR/doc-without-codeblock.rs:4:1
|
2020-11-21 11:08:58 -05:00
|
|
|
|
|
|
|
|
LL | /// Some docs.
|
|
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
|
2018-12-08 20:30:23 +01:00
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|