]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/suggestions/html-as-generics-no-suggestions.rs
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / src / test / rustdoc-ui / suggestions / html-as-generics-no-suggestions.rs
1 #![deny(rustdoc::invalid_html_tags)]
2
3 /// This Vec<32> thing!
4 // Numbers aren't valid HTML tags, so no error.
5 pub struct ConstGeneric;
6
7 /// This Vec<i32, i32> thing!
8 // HTML tags cannot contain commas, so no error.
9 pub struct MultipleGenerics;
10
11 /// This Vec<i32 class="test"> thing!
12 //~^ERROR unclosed HTML tag `i32`
13 // HTML attributes shouldn't be treated as Rust syntax, so no suggestions.
14 pub struct TagWithAttributes;
15
16 /// This Vec<i32></i32> thing!
17 // There should be no error, and no suggestion, since the tags are balanced.
18 pub struct DoNotWarnOnMatchingTags;
19
20 /// This Vec</i32> thing!
21 //~^ERROR unopened HTML tag `i32`
22 // This should produce an error, but no suggestion.
23 pub struct EndTagsAreNotValidRustSyntax;
24
25 /// This 123<i32> thing!
26 //~^ERROR unclosed HTML tag `i32`
27 // This should produce an error, but no suggestion.
28 pub struct NumbersAreNotPaths;
29
30 /// This Vec:<i32> thing!
31 //~^ERROR unclosed HTML tag `i32`
32 // This should produce an error, but no suggestion.
33 pub struct InvalidTurbofish;
34
35 /// This [link](https://rust-lang.org)<i32> thing!
36 //~^ERROR unclosed HTML tag `i32`
37 // This should produce an error, but no suggestion.
38 pub struct BareTurbofish;