rust/tests/rustdoc/doctest-markdown-inline-parse-23744.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
334 B
Rust
Raw Normal View History

// compile-flags:--test
2023-10-04 15:04:45 -05:00
// 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() {}