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:
Guillaume Gomez 2025-11-18 14:14:39 +01:00 committed by GitHub
commit 1fd16b19fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 14 additions and 0 deletions

View file

@ -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;