mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
30 lines
729 B
Rust
30 lines
729 B
Rust
#![crate_name = "foo"]
|
|
|
|
// This test ensures that there is no "infinite redirection" file generated (a
|
|
// file which redirects to itself).
|
|
|
|
// We check it's not a redirection file.
|
|
// @has 'foo/builders/struct.ActionRowBuilder.html'
|
|
// @has - '//*[@id="synthetic-implementations"]' 'Auto Trait Implementations'
|
|
|
|
// And that the link in the module is targeting it.
|
|
// @has 'foo/builders/index.html'
|
|
// @has - '//a[@href="struct.ActionRowBuilder.html"]' 'ActionRowBuilder'
|
|
|
|
mod auto {
|
|
mod action_row {
|
|
pub struct ActionRowBuilder;
|
|
}
|
|
|
|
#[doc(hidden)]
|
|
pub mod builders {
|
|
pub use super::action_row::ActionRowBuilder;
|
|
}
|
|
}
|
|
|
|
pub use auto::*;
|
|
|
|
pub mod builders {
|
|
pub use crate::auto::builders::*;
|
|
}
|