]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/doc-without-codeblock.stderr
Rollup merge of #107706 - tgross35:atomic-as-mut-ptr, r=m-ou-se
[rust.git] / tests / rustdoc-ui / doc-without-codeblock.stderr
1 error: missing code example in this documentation
2   --> $DIR/doc-without-codeblock.rs:1:1
3    |
4 LL | / #![feature(rustdoc_missing_doc_code_examples)]
5 LL | | #![deny(rustdoc::missing_doc_code_examples)]
6 LL | |
7 LL | | /// Some docs.
8 ...  |
9 LL | |     }
10 LL | | }
11    | |_^
12    |
13 note: the lint level is defined here
14   --> $DIR/doc-without-codeblock.rs:2:9
15    |
16 LL | #![deny(rustdoc::missing_doc_code_examples)]
17    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: missing code example in this documentation
20   --> $DIR/doc-without-codeblock.rs:8:1
21    |
22 LL | /// And then, the princess died.
23    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25 error: missing code example in this documentation
26   --> $DIR/doc-without-codeblock.rs:11:5
27    |
28 LL |     /// Or maybe not because she saved herself!
29    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: missing code example in this documentation
32   --> $DIR/doc-without-codeblock.rs:4:1
33    |
34 LL | /// Some docs.
35    | ^^^^^^^^^^^^^^
36
37 error: aborting due to 4 previous errors
38