diff --git a/src/test/rustdoc-ui/lint-group.rs b/src/test/rustdoc-ui/lint-group.rs index e58c8b12f68..1446f7f1c1f 100644 --- a/src/test/rustdoc-ui/lint-group.rs +++ b/src/test/rustdoc-ui/lint-group.rs @@ -22,3 +22,8 @@ pub fn no_doctest() {} //~^ ERROR missing code example in this documentation /// println!("sup"); /// ``` fn private_doctest() {} //~^^^^^ ERROR documentation test in private item + +/// +//~^ ERROR unclosed HTML tag `unknown` +//~^^ ERROR missing code example +pub fn c() {} diff --git a/src/test/rustdoc-ui/lint-group.stderr b/src/test/rustdoc-ui/lint-group.stderr index 4e9134ea469..8bc6f40b4b9 100644 --- a/src/test/rustdoc-ui/lint-group.stderr +++ b/src/test/rustdoc-ui/lint-group.stderr @@ -28,6 +28,12 @@ LL | #![deny(rustdoc)] | ^^^^^^^ = note: `#[deny(private_doc_tests)]` implied by `#[deny(rustdoc)]` +error: missing code example in this documentation + --> $DIR/lint-group.rs:26:1 + | +LL | /// + | ^^^^^^^^^^^^^ + error: unresolved link to `error` --> $DIR/lint-group.rs:9:29 | @@ -42,5 +48,18 @@ LL | #![deny(rustdoc)] = note: `#[deny(broken_intra_doc_links)]` implied by `#[deny(rustdoc)]` = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` -error: aborting due to 3 previous errors +error: unclosed HTML tag `unknown` + --> $DIR/lint-group.rs:26:5 + | +LL | /// + | ^^^^^^^^^ + | +note: the lint level is defined here + --> $DIR/lint-group.rs:7:9 + | +LL | #![deny(rustdoc)] + | ^^^^^^^ + = note: `#[deny(invalid_html_tags)]` implied by `#[deny(rustdoc)]` + +error: aborting due to 5 previous errors