about summary refs log tree commit diff
path: root/tests/rustdoc/intra-doc/enum-self-82209.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2025-01-29 11:36:36 -0700
committerMichael Howell <michael@notriddle.com>2025-01-29 11:38:15 -0700
commiteb457da5cafc0eb907a0ecf70ffae5a37cd4e8f0 (patch)
tree7367ca7dbca5f54a188a6db4cc35f996f9deb365 /tests/rustdoc/intra-doc/enum-self-82209.rs
parentfdef34b4ddfeebf614bb58622b4053cff616234a (diff)
downloadrust-eb457da5cafc0eb907a0ecf70ffae5a37cd4e8f0.tar.gz
rust-eb457da5cafc0eb907a0ecf70ffae5a37cd4e8f0.zip
rustdoc: rename `issue-\d+.rs` tests to have meaningful names
Diffstat (limited to 'tests/rustdoc/intra-doc/enum-self-82209.rs')
-rw-r--r--tests/rustdoc/intra-doc/enum-self-82209.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/intra-doc/enum-self-82209.rs b/tests/rustdoc/intra-doc/enum-self-82209.rs
new file mode 100644
index 00000000000..615115a5f8b
--- /dev/null
+++ b/tests/rustdoc/intra-doc/enum-self-82209.rs
@@ -0,0 +1,13 @@
+// https://github.com/rust-lang/rust/issues/82209
+
+#![crate_name = "foo"]
+#![deny(rustdoc::broken_intra_doc_links)]
+pub enum Foo {
+    Bar {
+        abc: i32,
+        /// [Self::Bar::abc]
+        xyz: i32,
+    },
+}
+
+//@ has foo/enum.Foo.html '//a/@href' 'enum.Foo.html#variant.Bar.field.abc'