rust/tests/rustdoc/doctest-markdown-inline-parse-23744.rs
2023-10-04 12:58:06 -07:00

15 lines
284 B
Rust

// compile-flags:--test
#![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() {}