2020-11-24 05:33:41 +01:00
|
|
|
#![crate_type = "lib"]
|
|
|
|
#![crate_name = "summaries"]
|
|
|
|
|
2021-11-28 20:05:24 +01:00
|
|
|
#![allow(rustdoc::broken_intra_doc_links)]
|
|
|
|
|
2021-06-19 02:47:05 +02:00
|
|
|
//! This *summary* has a [link], [`code`], and [`Sidebar2`] intra-doc.
|
2020-11-24 05:33:41 +01:00
|
|
|
//!
|
2021-06-19 02:47:05 +02:00
|
|
|
//! 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.
|
2020-11-24 05:33:41 +01:00
|
|
|
//!
|
|
|
|
//! [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;
|