summaryrefslogtreecommitdiffstats
path: root/src/test/rustdoc-js/summaries.rs
blob: 1ee1c34aa1562472b8892428ba001b4835b14c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#![crate_type = "lib"]
#![crate_name = "summaries"]

#![allow(rustdoc::broken_intra_doc_links)]

//! This *summary* has a [link], [`code`], and [`Sidebar2`] intra-doc.
//!
//! This is the second paragraph. It should not be rendered.
//! To test that intra-doc links are resolved properly, [`code`] should render
//! the square brackets, and [`Sidebar2`] should not.
//!
//! [link]: https://example.com

/// This `code` will be rendered in a code tag.
///
/// This text should not be rendered.
pub struct Sidebar;

/// ```text
/// this block should not be rendered
/// ```
pub struct Sidebar2;