Skip to content

Commit 1d95acb

Browse files
Add test for infinite redirection
1 parent a849857 commit 1d95acb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#![crate_name = "foo"]
2+
3+
// This test ensures that there is no "infinite redirection" file generated (a
4+
// file which redirects to itself).
5+
6+
// We check it's not a redirection file.
7+
// @has 'foo/builders/struct.ActionRowBuilder.html'
8+
// @has - '//*[@id="synthetic-implementations"]' 'Auto Trait Implementations'
9+
10+
// And that the link in the module is targetting it.
11+
// @has 'foo/builders/index.html'
12+
// @has - '//a[@href="struct.ActionRowBuilder.html"]' 'ActionRowBuilder'
13+
14+
mod auto {
15+
mod action_row {
16+
pub struct ActionRowBuilder;
17+
}
18+
19+
#[doc(hidden)]
20+
pub mod builders {
21+
pub use super::action_row::ActionRowBuilder;
22+
}
23+
}
24+
25+
pub use auto::*;
26+
27+
pub mod builders {
28+
pub use crate::auto::builders::*;
29+
}

0 commit comments

Comments
 (0)