File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ pub fn no_doctest() {} //~^ ERROR missing code example in this documentation
22
22
/// println!("sup");
23
23
/// ```
24
24
fn private_doctest ( ) { } //~^^^^^ ERROR documentation test in private item
25
+
26
+ /// <unknown>
27
+ //~^ ERROR unclosed HTML tag `unknown`
28
+ //~^^ ERROR missing code example
29
+ pub fn c ( ) { }
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ LL | #![deny(rustdoc)]
28
28
| ^^^^^^^
29
29
= note: `#[deny(private_doc_tests)]` implied by `#[deny(rustdoc)]`
30
30
31
+ error: missing code example in this documentation
32
+ --> $DIR/lint-group.rs:26:1
33
+ |
34
+ LL | /// <unknown>
35
+ | ^^^^^^^^^^^^^
36
+
31
37
error: unresolved link to `error`
32
38
--> $DIR/lint-group.rs:9:29
33
39
|
@@ -42,5 +48,18 @@ LL | #![deny(rustdoc)]
42
48
= note: `#[deny(broken_intra_doc_links)]` implied by `#[deny(rustdoc)]`
43
49
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
44
50
45
- error: aborting due to 3 previous errors
51
+ error: unclosed HTML tag `unknown`
52
+ --> $DIR/lint-group.rs:26:5
53
+ |
54
+ LL | /// <unknown>
55
+ | ^^^^^^^^^
56
+ |
57
+ note: the lint level is defined here
58
+ --> $DIR/lint-group.rs:7:9
59
+ |
60
+ LL | #![deny(rustdoc)]
61
+ | ^^^^^^^
62
+ = note: `#[deny(invalid_html_tags)]` implied by `#[deny(rustdoc)]`
63
+
64
+ error: aborting due to 5 previous errors
46
65
You can’t perform that action at this time.
0 commit comments