]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/intra-doc/html-as-generics-intra-doc.rs
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / rustdoc-ui / intra-doc / html-as-generics-intra-doc.rs
1 #![deny(rustdoc::invalid_html_tags)]
2 #![deny(rustdoc::broken_intra_doc_links)]
3
4 pub struct ExistentStruct<T>(T);
5
6 /// This [test][ExistentStruct<i32>] thing!
7 pub struct NoError;
8
9 /// This [ExistentStruct<i32>] thing!
10 //~^ ERROR unclosed HTML tag `i32`
11 pub struct PartialErrorOnlyHtml;
12
13 /// This [test][NonExistentStruct<i32>] thing!
14 //~^ ERROR unresolved link
15 pub struct PartialErrorOnlyResolve;
16
17 /// This [NonExistentStruct2<i32>] thing!
18 //~^ ERROR unclosed HTML tag `i32`
19 //~| ERROR unresolved link
20 pub struct YesError;
21
22 /// This [NonExistentStruct3<i32>][] thing!
23 //~^ ERROR unclosed HTML tag `i32`
24 //~| ERROR unresolved link
25 pub struct YesErrorCollapsed;