mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Rollup merge of #149026 - GuillaumeGomez:test-for-reexported-variant, r=lolbinarycat
Add test for href of reexported enum variant Working on https://github.com/rust-lang/rust/issues/148648 and realized that we actually didn't test for enum variants reexports, so here we are. I also think I'll do rust-lang/rust#148648 at the same time as https://github.com/rust-lang/rust/issues/148547. r? `@lolbinarycat`
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user