summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-23744.rs
blob: 642817396b2a0267869081c3007fe96e6a053ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// compile-flags:--test

/// Example of rustdoc incorrectly parsing <code>```rust,should_panic</code>.
///
/// ```should_panic
/// fn main() { panic!("fee"); }
/// ```
///
/// ```rust,should_panic
/// fn main() { panic!("fum"); }
/// ```
pub fn foo() {}