]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/markdown-summaries.rs
Rollup merge of #107769 - compiler-errors:pointer-like, r=eholk
[rust.git] / tests / rustdoc / markdown-summaries.rs
1 #![crate_type = "lib"]
2 #![crate_name = "summaries"]
3
4 //! This *summary* has a [link] and `code`.
5 //!
6 //! This is the second paragraph.
7 //!
8 //! [link]: https://example.com
9
10 // @hasraw search-index.js 'This <em>summary</em> has a link and <code>code</code>.'
11 // @!hasraw - 'second paragraph'
12
13 /// This `code` will be rendered in a code tag.
14 ///
15 /// This text should not be rendered.
16 pub struct Sidebar;
17
18 // @hasraw search-index.js 'This <code>code</code> will be rendered in a code tag.'
19 // @hasraw summaries/sidebar-items.js 'This `code` will be rendered in a code tag.'
20 // @!hasraw - 'text should not be rendered'
21
22 /// ```text
23 /// this block should not be rendered
24 /// ```
25 pub struct Sidebar2;
26
27 // @!hasraw summaries/sidebar-items.js 'block should not be rendered'