]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-js/summaries.rs
Merge commit '6f50986667debbfc67776304a8ee23fe0158613f' into libgccjit-codegen
[rust.git] / src / test / rustdoc-js / summaries.rs
1 #![crate_type = "lib"]
2 #![crate_name = "summaries"]
3
4 //! This *summary* has a [link], [`code`], and [`Sidebar2`] intra-doc.
5 //!
6 //! This is the second paragraph. It should not be rendered.
7 //! To test that intra-doc links are resolved properly, [`code`] should render
8 //! the square brackets, and [`Sidebar2`] should not.
9 //!
10 //! [link]: https://example.com
11
12 /// This `code` will be rendered in a code tag.
13 ///
14 /// This text should not be rendered.
15 pub struct Sidebar;
16
17 /// ```text
18 /// this block should not be rendered
19 /// ```
20 pub struct Sidebar2;