]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc-js/summaries.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / rustdoc-js / summaries.rs
CommitLineData
fc512014
XL
1#![crate_type = "lib"]
2#![crate_name = "summaries"]
3
136023e0 4//! This *summary* has a [link], [`code`], and [`Sidebar2`] intra-doc.
fc512014 5//!
136023e0
XL
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.
fc512014
XL
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.
15pub struct Sidebar;
16
17/// ```text
18/// this block should not be rendered
19/// ```
20pub struct Sidebar2;