Skip to content

Commit 1fd16b1

Browse files
Rollup merge of rust-lang#149026 - GuillaumeGomez:test-for-reexported-variant, r=lolbinarycat
Add test for href of reexported enum variant Working on rust-lang#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#148648 at the same time as rust-lang#148547. r? `@lolbinarycat`
2 parents abf6d30 + 8642d82 commit 1fd16b1

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)