diff options
| author | Michael Howell <michael@notriddle.com> | 2023-10-04 12:58:06 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-10-04 12:58:06 -0700 |
| commit | 9266270ef55e3138de0c58b9cd4c0949aa2eb04c (patch) | |
| tree | 689bfe5f58e854b6ee75df652a8a917b7aa34e3e /tests/rustdoc/doctest-markdown-inline-parse-23744.rs | |
| parent | a198aff4a4b1b83476497438cfc4771fb19c7bc4 (diff) | |
| download | rust-9266270ef55e3138de0c58b9cd4c0949aa2eb04c.tar.gz rust-9266270ef55e3138de0c58b9cd4c0949aa2eb04c.zip | |
Rename issue-\d+.rs tests to have meaningful names
Diffstat (limited to 'tests/rustdoc/doctest-markdown-inline-parse-23744.rs')
| -rw-r--r-- | tests/rustdoc/doctest-markdown-inline-parse-23744.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/rustdoc/doctest-markdown-inline-parse-23744.rs b/tests/rustdoc/doctest-markdown-inline-parse-23744.rs new file mode 100644 index 00000000000..45cc1bf3f41 --- /dev/null +++ b/tests/rustdoc/doctest-markdown-inline-parse-23744.rs @@ -0,0 +1,14 @@ +// 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() {} |
