2023-05-14 10:36:20 -05:00
|
|
|
pub struct Foo;
|
|
|
|
|
|
|
|
/// impl Foo priv
|
|
|
|
impl Foo {
|
|
|
|
fn baz() {}
|
|
|
|
}
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ !has '$.index[*][?(@.docs=="impl Foo priv")]'
|
2023-05-14 10:36:20 -05:00
|
|
|
|
|
|
|
/// impl Foo pub
|
|
|
|
impl Foo {
|
|
|
|
pub fn qux() {}
|
|
|
|
}
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is '$.index[*][?(@.docs=="impl Foo pub")].visibility' '"default"'
|
2023-05-14 10:36:20 -05:00
|
|
|
|
|
|
|
/// 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?
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|