We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a849857 commit 1d95acbCopy full SHA for 1d95acb
src/test/rustdoc/infinite-redirection.rs
@@ -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