Skip to content

Commit

Permalink
Add test to ensure that "invalid HTML tag" lint isn't fired in code b…
Browse files Browse the repository at this point in the history
…locks
  • Loading branch information
GuillaumeGomez committed Nov 16, 2020
1 parent 7986bb8 commit bbd302b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/test/rustdoc-ui/invalid-html-tags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,24 @@ pub fn h() {}
/// <!--
//~^ ERROR Unclosed HTML comment
pub fn i() {}

/// hello
///
/// ```
/// uiapp.run(&env::args().collect::<Vec<_>>());
/// ```
pub fn j() {}

// Check that nested codeblocks are working as well
/// hello
///
/// ``````markdown
/// normal markdown
///
/// ```
/// uiapp.run(&env::args().collect::<Vec<_>>());
/// ```
///
/// <Vec<_> shouldn't warn!
/// ``````
pub fn k() {}

0 comments on commit bbd302b

Please sign in to comment.