Skip to content

Commit 685502a

Browse files
authored
Unrolled build for #149026
Rollup merge of #149026 - GuillaumeGomez:test-for-reexported-variant, r=lolbinarycat Add test for href of reexported enum variant Working on #148648 and realized that we actually didn't test for enum variants reexports, so here we are. I also think I'll do #148648 at the same time as #148547. r? `@lolbinarycat`
2 parents f9e7961 + 8642d82 commit 685502a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This test ensures that reexported enum variants correctly link to the original variant.
2+
3+
#![crate_name = "foo"]
4+
5+
pub enum Foo {
6+
S {
7+
x: u32,
8+
},
9+
}
10+
11+
//@ has 'foo/index.html'
12+
13+
//@ has - '//*[@class="item-table reexports"]/*[@id="reexport.S"]//a[@href="enum.Foo.html#variant.S"]' 'S'
14+
pub use self::Foo::S;

0 commit comments

Comments
 (0)