]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js/summaries.rs
Rollup merge of #107793 - joboet:raw_os_error_ty_tracking, r=Dylan-DPC
[rust.git] / tests / rustdoc-js / summaries.rs
1 #![crate_type = "lib"]
2 #![crate_name = "summaries"]
3
4 #![allow(rustdoc::broken_intra_doc_links)]
5
6 //! This *summary* has a [link], [`code`], and [`Sidebar2`] intra-doc.
7 //!
8 //! This is the second paragraph. It should not be rendered.
9 //! To test that intra-doc links are resolved properly, [`code`] should render
10 //! the square brackets, and [`Sidebar2`] should not.
11 //!
12 //! [link]: https://example.com
13
14 /// This `code` will be rendered in a code tag.
15 ///
16 /// This text should not be rendered.
17 pub struct Sidebar;
18
19 /// ```text
20 /// this block should not be rendered
21 /// ```
22 pub struct Sidebar2;