1 // ignore-tidy-linelength
2 // compile-flags: --document-private-items
6 // @has foo/fn.bar.html
7 // @has - '//*[@class="rust fn"]' 'pub fn bar() -> '
9 pub fn bar() -> usize {
13 // @has foo/struct.Foo.html
14 // @has - '//*[@class="method"]' 'pub fn new()'
15 // @has - '//*[@class="method"]' 'fn not_pub()'
16 pub struct Foo(usize);
19 pub fn new() -> Foo { Foo(0) }