2023-05-14 10:36:20 -05:00
|
|
|
// compile-flags: --document-hidden-items
|
|
|
|
|
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
/// impl Foo priv
|
|
|
|
impl Foo {
|
|
|
|
fn baz() {}
|
|
|
|
}
|
|
|
|
// FIXME(#111564): Is this the right behaviour?
|
|
|
|
// @is '$.index[*][?(@.docs=="impl Foo priv")].visibility' '"default"'
|
|
|
|
|
|
|
|
/// impl Foo pub
|
|
|
|
impl Foo {
|
|
|
|
pub fn qux() {}
|
|
|
|
}
|
|
|
|
// @is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
|
|
|
|
|
|
|
|
/// impl Foo hidden
|
|
|
|
impl Foo {
|
|
|
|
#[doc(hidden)]
|
2023-11-07 10:36:55 -06:00
|
|
|
pub fn __quazl() {}
|
2023-05-14 10:36:20 -05:00
|
|
|
}
|
|
|
|
// FIXME(#111564): Is this the right behaviour?
|
|
|
|
// @is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|