mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-03 22:49:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			532 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			532 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
// compile-flags: --document-private-items
 | 
						|
#![feature(no_core)]
 | 
						|
#![no_core]
 | 
						|
 | 
						|
pub struct Foo;
 | 
						|
 | 
						|
/// impl Foo priv
 | 
						|
impl Foo {
 | 
						|
    fn baz() {}
 | 
						|
}
 | 
						|
// @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"'
 |