]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/suggestions/html-as-generics.fixed
rustdoc: Early doc link resolution fixes and refactorings
[rust.git] / src / test / rustdoc-ui / suggestions / html-as-generics.fixed
1 // run-rustfix
2 #![deny(rustdoc::invalid_html_tags)]
3
4 /// This `Vec<i32>` thing!
5 //~^ERROR unclosed HTML tag `i32`
6 //~|HELP try marking as source
7 pub struct Generic;
8
9 /// This `vec::Vec<i32>` thing!
10 //~^ERROR unclosed HTML tag `i32`
11 //~|HELP try marking as source
12 pub struct GenericPath;
13
14 /// This `i32<i32>` thing!
15 //~^ERROR unclosed HTML tag `i32`
16 //~|HELP try marking as source
17 pub struct PathsCanContainTrailingNumbers;
18
19 /// This `Vec::<i32>` thing!
20 //~^ERROR unclosed HTML tag `i32`
21 //~|HELP try marking as source
22 pub struct Turbofish;
23
24 /// This [link](https://rust-lang.org)`::<i32>` thing!
25 //~^ERROR unclosed HTML tag `i32`
26 //~|HELP try marking as source
27 pub struct BareTurbofish;
28
29 /// This <span>`Vec::<i32>`</span> thing!
30 //~^ERROR unclosed HTML tag `i32`
31 //~|HELP try marking as source
32 pub struct Nested;