]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/plain-text-summaries.rs
Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorino
[rust.git] / src / test / rustdoc / plain-text-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 // @has search-index.js 'This summary has a link and `code`.'
11 // @!has - 'second paragraph'
12
13 /// This `code` should be in backticks.
14 ///
15 /// This text should not be rendered.
16 pub struct Sidebar;
17
18 // @has summaries/sidebar-items.js 'This `code` should be in backticks.'
19 // @!has - 'text should not be rendered'
20
21 /// ```text
22 /// this block should not be rendered
23 /// ```
24 pub struct Sidebar2;
25
26 // @!has summaries/sidebar-items.js 'block should not be rendered'