summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/issue-42760.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc/issue-42760.rs')
-rw-r--r--tests/rustdoc/issue-42760.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/rustdoc/issue-42760.rs b/tests/rustdoc/issue-42760.rs
new file mode 100644
index 000000000..a5394c7d9
--- /dev/null
+++ b/tests/rustdoc/issue-42760.rs
@@ -0,0 +1,15 @@
+#![allow(rustdoc::invalid_rust_codeblocks)]
+
+// @has issue_42760/struct.NonGen.html
+// @has - '//h2' 'Example'
+
+/// Item docs.
+///
+#[doc="Hello there!"]
+///
+/// # Example
+///
+/// ```rust
+/// // some code here
+/// ```
+pub struct NonGen;