mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
ade7ecf909
This is shorter, avoids potential conflicts with a crate named `implementors`[^1], and will be less confusing when JS include files are added for type aliases. [^1]: AFAIK, this couldn't actually cause any problems right now, but it's simpler just to make it impossible than relying on never having a file named `trait.Foo.js` in the crate data area.
18 lines
284 B
Rust
18 lines
284 B
Rust
#![crate_name = "foo"]
|
|
|
|
mod hidden {
|
|
#[derive(Clone)]
|
|
pub struct Foo;
|
|
}
|
|
|
|
#[doc(hidden)]
|
|
pub mod __hidden {
|
|
pub use hidden::Foo;
|
|
}
|
|
|
|
// @has foo/trait.Clone.html
|
|
// @!hasraw - 'Foo'
|
|
// @has trait.impl/core/clone/trait.Clone.js
|
|
// @!hasraw - 'Foo'
|
|
pub use std::clone::Clone;
|