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