Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
29
tests/rustdoc/hidden-methods.rs
Normal file
29
tests/rustdoc/hidden-methods.rs
Normal file
|
@ -0,0 +1,29 @@
|
|||
#![crate_name = "foo"]
|
||||
|
||||
#[doc(hidden)]
|
||||
pub mod hidden {
|
||||
pub struct Foo;
|
||||
|
||||
impl Foo {
|
||||
#[doc(hidden)]
|
||||
pub fn this_should_be_hidden() {}
|
||||
}
|
||||
|
||||
pub struct Bar;
|
||||
|
||||
impl Bar {
|
||||
fn this_should_be_hidden() {}
|
||||
}
|
||||
}
|
||||
|
||||
// @has foo/struct.Foo.html
|
||||
// @!hasraw - 'Methods'
|
||||
// @!has - '//code' 'impl Foo'
|
||||
// @!hasraw - 'this_should_be_hidden'
|
||||
pub use hidden::Foo;
|
||||
|
||||
// @has foo/struct.Bar.html
|
||||
// @!hasraw - 'Methods'
|
||||
// @!has - '//code' 'impl Bar'
|
||||
// @!hasraw - 'this_should_be_hidden'
|
||||
pub use hidden::Bar;
|
Loading…
Add table
Add a link
Reference in a new issue