]> git.proxmox.com Git - rustc.git/blob - tests/rustdoc/infinite-redirection.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / rustdoc / infinite-redirection.rs
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 targeting 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 }