diff --git a/tests/rustdoc/reexport/enum-variant.rs b/tests/rustdoc/reexport/enum-variant.rs new file mode 100644 index 0000000000000..7436f8853e02e --- /dev/null +++ b/tests/rustdoc/reexport/enum-variant.rs @@ -0,0 +1,14 @@ +// This test ensures that reexported enum variants correctly link to the original variant. + +#![crate_name = "foo"] + +pub enum Foo { + S { + x: u32, + }, +} + +//@ has 'foo/index.html' + +//@ has - '//*[@class="item-table reexports"]/*[@id="reexport.S"]//a[@href="enum.Foo.html#variant.S"]' 'S' +pub use self::Foo::S; diff --git a/tests/rustdoc/import_trait_associated_functions.rs b/tests/rustdoc/reexport/import_trait_associated_functions.rs similarity index 100% rename from tests/rustdoc/import_trait_associated_functions.rs rename to tests/rustdoc/reexport/import_trait_associated_functions.rs