fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1007 B38 linesraw
1error: missing code example in this documentation
2  --> $DIR/doc-without-codeblock.rs:1:1
3   |
4LL | / #![feature(rustdoc_missing_doc_code_examples)]
5LL | | #![deny(rustdoc::missing_doc_code_examples)]
6LL | |
7LL | | /// Some docs.
8...  |
9LL | |     }
10LL | | }
11   | |_^
12   |
13note: the lint level is defined here
14  --> $DIR/doc-without-codeblock.rs:2:9
15   |
16LL | #![deny(rustdoc::missing_doc_code_examples)]
17   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18
19error: missing code example in this documentation
20  --> $DIR/doc-without-codeblock.rs:8:1
21   |
22LL | /// And then, the princess died.
23   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24
25error: missing code example in this documentation
26  --> $DIR/doc-without-codeblock.rs:11:5
27   |
28LL |     /// Or maybe not because she saved herself!
29   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
31error: missing code example in this documentation
32  --> $DIR/doc-without-codeblock.rs:4:1
33   |
34LL | /// Some docs.
35   | ^^^^^^^^^^^^^^
36
37error: aborting due to 4 previous errors
38