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