]>
Commit | Line | Data |
---|---|---|
60c5eb7d | 1 | error: missing code example in this documentation |
48663c56 XL |
2 | --> $DIR/doc-without-codeblock.rs:1:1 |
3 | | | |
4 | LL | / #![deny(missing_doc_code_examples)] | |
5 | LL | | | |
6 | LL | | /// Some docs. | |
7 | LL | | | |
8 | ... | | |
9 | LL | | pub fn bar() {} | |
10 | LL | | } | |
11 | | |_^ | |
0bf4aa26 XL |
12 | | |
13 | note: lint level defined here | |
48663c56 | 14 | --> $DIR/doc-without-codeblock.rs:1:9 |
0bf4aa26 XL |
15 | | |
16 | LL | #![deny(missing_doc_code_examples)] | |
17 | | ^^^^^^^^^^^^^^^^^^^^^^^^^ | |
18 | ||
60c5eb7d | 19 | error: missing code example in this documentation |
48663c56 | 20 | --> $DIR/doc-without-codeblock.rs:3:1 |
0bf4aa26 XL |
21 | | |
22 | LL | /// Some docs. | |
23 | | ^^^^^^^^^^^^^^ | |
24 | ||
60c5eb7d | 25 | error: missing code example in this documentation |
48663c56 | 26 | --> $DIR/doc-without-codeblock.rs:7:1 |
0bf4aa26 XL |
27 | | |
28 | LL | /// And then, the princess died. | |
29 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
30 | ||
60c5eb7d | 31 | error: missing code example in this documentation |
48663c56 | 32 | --> $DIR/doc-without-codeblock.rs:10:5 |
0bf4aa26 XL |
33 | | |
34 | LL | /// Or maybe not because she saved herself! | |
35 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
36 | ||
532ac7d7 XL |
37 | error: aborting due to 4 previous errors |
38 |