]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-ui/lint-group.rs
Add test for invalid_html_tag lint in deny(rustdoc)
[rust.git] / src / test / rustdoc-ui / lint-group.rs
index e58c8b12f68cb8550ef9bd0c43bbe40f54554175..1446f7f1c1f310af55985b93003c1b9faf3dec5a 100644 (file)
@@ -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
+
+/// <unknown>
+//~^ ERROR unclosed HTML tag `unknown`
+//~^^ ERROR missing code example
+pub fn c() {}