diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-24 16:27:52 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-11-27 13:13:16 +0100 |
| commit | 4ab8aa37005c5044d989a8fa1f3495eb76dff7d2 (patch) | |
| tree | 31523c8d8b5800f445f1575b3abd7c917c57ec4d /src/test/rustdoc/intra-doc-link-enum-struct-field.rs | |
| parent | 4993807dd9416ed65b9cac0e507af34bfe04a4ad (diff) | |
| download | rust-4ab8aa37005c5044d989a8fa1f3495eb76dff7d2.tar.gz rust-4ab8aa37005c5044d989a8fa1f3495eb76dff7d2.zip | |
Add support for intra-doc link fields of enum variant
Diffstat (limited to 'src/test/rustdoc/intra-doc-link-enum-struct-field.rs')
| -rw-r--r-- | src/test/rustdoc/intra-doc-link-enum-struct-field.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc-link-enum-struct-field.rs b/src/test/rustdoc/intra-doc-link-enum-struct-field.rs new file mode 100644 index 00000000000..70bf343a9a5 --- /dev/null +++ b/src/test/rustdoc/intra-doc-link-enum-struct-field.rs @@ -0,0 +1,14 @@ +#![crate_name = "foo"] + +pub enum Foo { + X { + y: u8, + } +} + +/// Hello +/// +/// I want [Foo::X::y]. +pub fn foo() {} + +// @has foo/fn.foo.html '//a/@href' '../foo/enum.Foo.html#variant.X.field.y' |
