about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/doc-without-codeblock.stderr
blob: 23c07c4d32d64359d43a4a4ead40dbac4ba40050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
error: Missing code example in this documentation
  --> $DIR/doc-without-codeblock.rs:1:1
   |
LL | / #![deny(missing_doc_code_examples)]
LL | |
LL | | /// Some docs.
LL | |
...  |
LL | |     pub fn bar() {}
LL | | }
   | |_^
   |
note: lint level defined here
  --> $DIR/doc-without-codeblock.rs:1:9
   |
LL | #![deny(missing_doc_code_examples)]
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^

error: Missing code example in this documentation
  --> $DIR/doc-without-codeblock.rs:3:1
   |
LL | /// Some docs.
   | ^^^^^^^^^^^^^^

error: Missing code example in this documentation
  --> $DIR/doc-without-codeblock.rs:7:1
   |
LL | /// And then, the princess died.
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: Missing code example in this documentation
  --> $DIR/doc-without-codeblock.rs:10:5
   |
LL |     /// Or maybe not because she saved herself!
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: aborting due to 4 previous errors