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:
commit
1fd16b19fc
2 changed files with 14 additions and 0 deletions
14
tests/rustdoc/reexport/enum-variant.rs
Normal file
14
tests/rustdoc/reexport/enum-variant.rs
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue