diff options
Diffstat (limited to 'tests/rustdoc/intra-doc/enum-self-82209.rs')
| -rw-r--r-- | tests/rustdoc/intra-doc/enum-self-82209.rs | 13 | 
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' | 
