about summary refs log tree commit diff
path: root/tests/rustdoc/doctest/doctest-markdown-inline-parse-23744.rs
blob: 2ba9176ae88c28759d7417659988c8c5ce48cb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ compile-flags:--test

// https://github.com/rust-lang/rust/issues/23744
#![crate_name="issue_23744"]

/// 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() {}