]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/hidden-methods.rs
Update snap from `1.0.1` to `1.1.0`
[rust.git] / tests / rustdoc / hidden-methods.rs
1 #![crate_name = "foo"]
2
3 #[doc(hidden)]
4 pub mod hidden {
5     pub struct Foo;
6
7     impl Foo {
8         #[doc(hidden)]
9         pub fn this_should_be_hidden() {}
10     }
11
12     pub struct Bar;
13
14     impl Bar {
15         fn this_should_be_hidden() {}
16     }
17 }
18
19 // @has foo/struct.Foo.html
20 // @!hasraw - 'Methods'
21 // @!has - '//code' 'impl Foo'
22 // @!hasraw - 'this_should_be_hidden'
23 pub use hidden::Foo;
24
25 // @has foo/struct.Bar.html
26 // @!hasraw - 'Methods'
27 // @!has - '//code' 'impl Bar'
28 // @!hasraw - 'this_should_be_hidden'
29 pub use hidden::Bar;