]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc-ui/check-fail.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc-ui / check-fail.stderr
1 error: missing documentation for a function
2 --> $DIR/check-fail.rs:12:1
3 |
4 LL | pub fn foo() {}
5 | ^^^^^^^^^^^^
6 |
7 note: the lint level is defined here
8 --> $DIR/check-fail.rs:4:9
9 |
10 LL | #![deny(missing_docs)]
11 | ^^^^^^^^^^^^
12
13 error: missing code example in this documentation
14 --> $DIR/check-fail.rs:12:1
15 |
16 LL | pub fn foo() {}
17 | ^^^^^^^^^^^^^^^
18 |
19 note: the lint level is defined here
20 --> $DIR/check-fail.rs:5:9
21 |
22 LL | #![deny(rustdoc::all)]
23 | ^^^^^^^^^^^^
24 = note: `#[deny(rustdoc::missing_doc_code_examples)]` implied by `#[deny(rustdoc::all)]`
25
26 error: unknown attribute `testharness`. Did you mean `test_harness`?
27 --> $DIR/check-fail.rs:7:1
28 |
29 LL | / //! ```rust,testharness
30 LL | |
31 LL | | //! let x = 12;
32 LL | | //! ```
33 | |_______^
34 |
35 = 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
36 = note: `#[deny(rustdoc::invalid_codeblock_attributes)]` implied by `#[deny(rustdoc::all)]`
37
38 error: unknown attribute `testharness`. Did you mean `test_harness`?
39 --> $DIR/check-fail.rs:16:1
40 |
41 LL | / /// hello
42 LL | |
43 LL | | ///
44 LL | | /// ```rust,testharness
45 LL | | /// let x = 12;
46 LL | | /// ```
47 | |_______^
48 |
49 = 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
50
51 error: aborting due to 4 previous errors
52