about summary refs log tree commit diff
path: root/tests/rustdoc-ui
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-08-04 14:06:19 -0500
committerbinarycat <binarycat@envs.net>2025-08-11 10:50:44 -0500
commitc022ed99274b6d8d243fcaac0450080e90e4c079 (patch)
tree46da7a175ea87d40e8d5731e4fb3426de6ed886a /tests/rustdoc-ui
parente1b9081e699065badfc1a9419ec9566e5c8615c4 (diff)
downloadrust-c022ed99274b6d8d243fcaac0450080e90e4c079.tar.gz
rust-c022ed99274b6d8d243fcaac0450080e90e4c079.zip
don't emit rustdoc::broken_intra_doc_links for stuff like [!NOTE]
Diffstat (limited to 'tests/rustdoc-ui')
-rw-r--r--tests/rustdoc-ui/intra-doc/github-flavored-admonitions.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/intra-doc/github-flavored-admonitions.rs b/tests/rustdoc-ui/intra-doc/github-flavored-admonitions.rs
new file mode 100644
index 00000000000..d5fa72eb993
--- /dev/null
+++ b/tests/rustdoc-ui/intra-doc/github-flavored-admonitions.rs
@@ -0,0 +1,6 @@
+// regression test for https://github.com/rust-lang/rust/issues/141866
+//@ check-pass
+#![deny(rustdoc::broken_intra_doc_links)]
+
+//! > [!NOTE]
+//! > This should not cause any warnings