]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/doc-without-codeblock.stderr
Rollup merge of #68129 - varkor:infer-binary-operand-behind-reference, r=nikomatsakis
[rust.git] / src / test / 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 | / #![deny(missing_doc_code_examples)]
5 LL | |
6 LL | | /// Some docs.
7 LL | |
8 ...  |
9 LL | |     pub fn bar() {}
10 LL | | }
11    | |_^
12    |
13 note: the lint level is defined here
14   --> $DIR/doc-without-codeblock.rs:1:9
15    |
16 LL | #![deny(missing_doc_code_examples)]
17    |         ^^^^^^^^^^^^^^^^^^^^^^^^^
18
19 error: missing code example in this documentation
20   --> $DIR/doc-without-codeblock.rs:3:1
21    |
22 LL | /// Some docs.
23    | ^^^^^^^^^^^^^^
24
25 error: missing code example in this documentation
26   --> $DIR/doc-without-codeblock.rs:7:1
27    |
28 LL | /// And then, the princess died.
29    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31 error: missing code example in this documentation
32   --> $DIR/doc-without-codeblock.rs:10:5
33    |
34 LL |     /// Or maybe not because she saved herself!
35    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
36
37 error: aborting due to 4 previous errors
38