mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
25 lines
546 B
Rust
25 lines
546 B
Rust
//@ 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)]
|
|
pub fn __quazl() {}
|
|
}
|
|
// FIXME(#111564): Is this the right behaviour?
|
|
//@ is '$.index[*][?(@.docs=="impl Foo hidden")].visibility' '"default"'
|