]>
Commit | Line | Data |
---|---|---|
fc512014 XL |
1 | error: missing documentation for a function |
2 | --> $DIR/check-fail.rs:11:1 | |
3 | | | |
4 | LL | pub fn foo() {} | |
5 | | ^^^^^^^^^^^^ | |
6 | | | |
7 | note: the lint level is defined here | |
8 | --> $DIR/check-fail.rs:3:9 | |
9 | | | |
10 | LL | #![deny(missing_docs)] | |
11 | | ^^^^^^^^^^^^ | |
12 | ||
13 | error: missing code example in this documentation | |
14 | --> $DIR/check-fail.rs:11:1 | |
15 | | | |
16 | LL | pub fn foo() {} | |
17 | | ^^^^^^^^^^^^^^^ | |
18 | | | |
19 | note: the lint level is defined here | |
20 | --> $DIR/check-fail.rs:4:9 | |
21 | | | |
6a06907d XL |
22 | LL | #![deny(rustdoc::all)] |
23 | | ^^^^^^^^^^^^ | |
24 | = note: `#[deny(rustdoc::missing_doc_code_examples)]` implied by `#[deny(rustdoc::all)]` | |
fc512014 XL |
25 | |
26 | error: unknown attribute `testharness`. Did you mean `test_harness`? | |
27 | --> $DIR/check-fail.rs:6:1 | |
28 | | | |
29 | LL | / //! ```rust,testharness | |
30 | LL | | | |
31 | LL | | //! let x = 12; | |
32 | LL | | //! ``` | |
33 | | |_______^ | |
34 | | | |
35 | note: the lint level is defined here | |
36 | --> $DIR/check-fail.rs:4:9 | |
37 | | | |
6a06907d XL |
38 | LL | #![deny(rustdoc::all)] |
39 | | ^^^^^^^^^^^^ | |
40 | = note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]` | |
fc512014 XL |
41 | = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function |
42 | ||
43 | error: unknown attribute `testharness`. Did you mean `test_harness`? | |
44 | --> $DIR/check-fail.rs:15:1 | |
45 | | | |
46 | LL | / /// hello | |
47 | LL | | | |
48 | LL | | /// | |
49 | LL | | /// ```rust,testharness | |
50 | LL | | /// let x = 12; | |
51 | LL | | /// ``` | |
52 | | |_______^ | |
53 | | | |
54 | = help: the code block will either not be tested if not marked as a rust one or the code will be wrapped inside a main function | |
55 | ||
56 | error: aborting due to 4 previous errors | |
57 |