Skip to content

Commit 8c94f8b

Browse files
committed
Add more tests for renamed items
1 parent 0459aca commit 8c94f8b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/rustdoc/redirect-rename.rs

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ mod hidden {
44
// @has foo/hidden/struct.Foo.html
55
// @has - '//p/a' '../../foo/struct.FooBar.html'
66
pub struct Foo {}
7+
pub union U { a: usize }
8+
pub enum Empty {}
9+
pub const C: usize = 1;
10+
pub static S: usize = 1;
711

812
// @has foo/hidden/bar/index.html
913
// @has - '//p/a' '../../foo/baz/index.html'
@@ -16,6 +20,14 @@ mod hidden {
1620

1721
// @has foo/struct.FooBar.html
1822
pub use hidden::Foo as FooBar;
23+
// @has foo/union.FooU.html
24+
pub use hidden::U as FooU;
25+
// @has foo/enum.FooEmpty.html
26+
pub use hidden::Empty as FooEmpty;
27+
// @has foo/constant.FooC.html
28+
pub use hidden::C as FooC;
29+
// @has foo/static.FooS.html
30+
pub use hidden::S as FooS;
1931

2032
// @has foo/baz/index.html
2133
// @has foo/baz/struct.Thing.html

0 commit comments

Comments
 (0)