diff options
| author | Joshua Nelson <jyn514@gmail.com> | 2020-11-28 20:25:41 -0500 |
|---|---|---|
| committer | Joshua Nelson <jyn514@gmail.com> | 2020-11-28 21:13:55 -0500 |
| commit | ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed (patch) | |
| tree | ecf43b905627276e664d79d7ab93bba72f899fad /src/test/rustdoc/intra-doc/enum-struct-field.rs | |
| parent | e37f25aa3f356546ab851e394d5598fc575eabda (diff) | |
| download | rust-ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed.tar.gz rust-ddfb581fb9e04595bc7cdb9d66792fdfdbec67ed.zip | |
Move `src/test/rustdoc` intra-doc link tests into a subdirectory
They were starting to get unwieldy.
Diffstat (limited to 'src/test/rustdoc/intra-doc/enum-struct-field.rs')
| -rw-r--r-- | src/test/rustdoc/intra-doc/enum-struct-field.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/rustdoc/intra-doc/enum-struct-field.rs b/src/test/rustdoc/intra-doc/enum-struct-field.rs new file mode 100644 index 00000000000..70bf343a9a5 --- /dev/null +++ b/src/test/rustdoc/intra-doc/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' |
