Skip to content

Commit 8642d82

Browse files
Add test for href of reexported enum variant
1 parent 2a1bd47 commit 8642d82

File tree

1 file changed

+14
-0
lines changed

1 file 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)