Skip to content

Commit bbd302b

Browse files
Add test to ensure that "invalid HTML tag" lint isn't fired in code blocks
1 parent 7986bb8 commit bbd302b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/test/rustdoc-ui/invalid-html-tags.rs

+21
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,24 @@ pub fn h() {}
8787
/// <!--
8888
//~^ ERROR Unclosed HTML comment
8989
pub fn i() {}
90+
91+
/// hello
92+
///
93+
/// ```
94+
/// uiapp.run(&env::args().collect::<Vec<_>>());
95+
/// ```
96+
pub fn j() {}
97+
98+
// Check that nested codeblocks are working as well
99+
/// hello
100+
///
101+
/// ``````markdown
102+
/// normal markdown
103+
///
104+
/// ```
105+
/// uiapp.run(&env::args().collect::<Vec<_>>());
106+
/// ```
107+
///
108+
/// <Vec<_> shouldn't warn!
109+
/// ``````
110+
pub fn k() {}

0 commit comments

Comments
 (0)