1 // compile-flags: --document-private-items
3 #![feature(inherent_associated_types)]
4 #![allow(incomplete_features)]
7 // @has 'foo/struct.Foo.html'
10 // There are 3 impl blocks with public item and one that should not be displayed
11 // by default because it only contains private items (but not in this case because
12 // we used `--document-private-items`).
13 // @count - '//*[@class="impl"]' 'impl Foo' 4
15 // Impl block only containing private items should not be displayed unless the
16 // `--document-private-items` flag is used.
24 // But if any element of the impl block is public, it should be displayed.
27 pub const BAR: u32 = 0;