]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/suggestions/html-as-generics.fixed
Rollup merge of #106648 - Nilstrieb:poly-cleanup, r=compiler-errors
[rust.git] / tests / 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;
33
34 /// Nested generics `Vec<Vec<u32>>`
35 //~^ ERROR unclosed HTML tag `u32`
36 //~|HELP try marking as source
37 pub struct NestedGenerics;
38
39 /// Generics with path `Vec<i32>::Iter`
40 //~^ ERROR unclosed HTML tag `i32`
41 //~|HELP try marking as source
42 pub struct GenericsWithPath;
43
44 /// Generics with path `<Vec<i32>>::Iter`
45 //~^ ERROR unclosed HTML tag `i32`
46 //~|HELP try marking as source
47 pub struct NestedGenericsWithPath;
48
49 /// Generics with path `Vec<Vec<i32>>::Iter`
50 //~^ ERROR unclosed HTML tag `i32`
51 //~|HELP try marking as source
52 pub struct NestedGenericsWithPath2;
53
54 /// Generics with bump `<Vec<i32>>`s
55 //~^ ERROR unclosed HTML tag `i32`
56 //~|HELP try marking as source
57 pub struct NestedGenericsWithBump;
58
59 /// Generics with bump `Vec<Vec<i32>>`s
60 //~^ ERROR unclosed HTML tag `i32`
61 //~|HELP try marking as source
62 pub struct NestedGenericsWithBump2;
63
64 /// Generics with punct `<Vec<i32>>`!
65 //~^ ERROR unclosed HTML tag `i32`
66 //~|HELP try marking as source
67 pub struct NestedGenericsWithPunct;
68
69 /// Generics with punct `Vec<Vec<i32>>`!
70 //~^ ERROR unclosed HTML tag `i32`
71 //~|HELP try marking as source
72 pub struct NestedGenericsWithPunct2;
73
74 /// This [`Vec<i32>`] thing!
75 //~^ERROR unclosed HTML tag `i32`
76 //~|HELP try marking as source
77 pub struct IntraDocLink;
78
79 /// This [`Vec::<i32>`] thing!
80 //~^ERROR unclosed HTML tag `i32`
81 //~|HELP try marking as source
82 pub struct IntraDocLinkTurbofish;