diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-11-16 15:32:26 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-11-16 16:44:41 +0100 |
| commit | bbd302bab469a1da3804a4b998817ccbf15c874e (patch) | |
| tree | 22d8a56fb2aa6adc6313ec8d04a53c793243a1ed | |
| parent | 7986bb8c463ea6c61788983e4016243bef97acdc (diff) | |
| download | rust-bbd302bab469a1da3804a4b998817ccbf15c874e.tar.gz rust-bbd302bab469a1da3804a4b998817ccbf15c874e.zip | |
Add test to ensure that "invalid HTML tag" lint isn't fired in code blocks
| -rw-r--r-- | src/test/rustdoc-ui/invalid-html-tags.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/invalid-html-tags.rs b/src/test/rustdoc-ui/invalid-html-tags.rs index 56ca7e79d43..9c2fc4beb5e 100644 --- a/src/test/rustdoc-ui/invalid-html-tags.rs +++ b/src/test/rustdoc-ui/invalid-html-tags.rs @@ -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() {} |
