rust/tests/rustdoc-json/impls/impl_item_visibility.rs
Alona Enraght-Moony 7ab71c417b tests/rustdoc-json: replace $.index[*][? with $.index[?
Done automatically with VSCode.
2025-03-21 00:48:09 +00:00

21 lines
424 B
Rust

pub struct Foo;
/// impl Foo priv
impl Foo {
fn baz() {}
}
//@ !has '$.index[?(@.docs=="impl Foo priv")]'
/// impl Foo pub
impl Foo {
pub fn qux() {}
}
//@ is '$.index[?(@.docs=="impl Foo pub")].visibility' '"default"'
/// impl Foo hidden
impl Foo {
#[doc(hidden)]
pub fn __quazl() {}
}
// FIXME(#111564): Is this the right behaviour?
//@ is '$.index[?(@.docs=="impl Foo hidden")].visibility' '"default"'