]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-ui/invalid-html-tags.rs
Enforce closing HTML tags to have a ">" character
[rust.git] / src / test / rustdoc-ui / invalid-html-tags.rs
index db97ab4456cd0a902f454cf1a9a36490fa0ccfb4..d878e390ca33934c7a76b7fb20a20957a75d621d 100644 (file)
@@ -23,7 +23,7 @@ pub fn foo() {}
 /// </h1>
 /// </hello>
 //~^ ERROR unopened HTML tag `hello`
-pub fn f() {}
+pub fn bar() {}
 
 /// <div>
 ///    <br/> <p>
@@ -67,3 +67,9 @@ pub fn d() {}
 ///   </div>
 /// </style>
 pub fn e() {}
+
+// Closing tags need to have ">" at the end, otherwise it's not a closing tag!
+/// <div></div >
+/// <div></div
+//~^ ERROR unclosed HTML tag `div`
+pub fn f() {}