mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			429 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			429 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| pub struct Demo(
 | |
|     i32,
 | |
|     /// field
 | |
|     pub i32,
 | |
|     #[doc(hidden)] i32,
 | |
| );
 | |
| 
 | |
| // @set field = "$.index[*][?(@.docs=='field')].id"
 | |
| 
 | |
| // @is    "$.index[*][?(@.name=='Demo')].inner.struct.kind.tuple[0]" null
 | |
| // @is    "$.index[*][?(@.name=='Demo')].inner.struct.kind.tuple[1]" $field
 | |
| // @is    "$.index[*][?(@.name=='Demo')].inner.struct.kind.tuple[2]" null
 | |
| // @count "$.index[*][?(@.name=='Demo')].inner.struct.kind.tuple[*]" 3
 | 
