Skip to content

Commit 2afc11c

Browse files
Add test for href of reexported enum variant
1 parent 0e379a4 commit 2afc11c

File tree

1 file changed

+15
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)