diff options
Diffstat (limited to 'tests/rustdoc/issue-23744.rs')
-rw-r--r-- | tests/rustdoc/issue-23744.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-23744.rs b/tests/rustdoc/issue-23744.rs new file mode 100644 index 000000000..642817396 --- /dev/null +++ b/tests/rustdoc/issue-23744.rs @@ -0,0 +1,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() {} |