Closed
Description
pub struct S;
impl S {
pub const C1: () = ();
pub fn foo1() {}
}
/// Comment
impl S {
pub const C2: () = ();
pub fn foo2() {}
}
/// Comment
impl S {
pub const C3: () = ();
pub fn foo3() {}
}
On the left of the image is the documentation for the three blocks.
- No comment for the impl block.
- The comment for the impl block is expanded.
- The comment for the impl block is collapsed.
On the right, there is what happens when the three impl blocks are collapsed.
- Collapsed as expected, with both constant and function hidden as expected.
- The comment is still visible though its
[-]
is hidden. The function is hidden as expected but the constant is not hidden. - The comment is hidden as expected. The function is hidden as expected but the constant is not hidden.