mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 9397d133f6
			
		
	
	
		9397d133f6
		
	
	
	
	
		
			
			constants and statics are nullary functions, and struct fields are unary functions. functions (along with methods and trait methods) are prioritized over other items, like fields and constants.
		
			
				
	
	
		
			8 lines
		
	
	
		
			208 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			208 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const EXPECTED = {
 | |
|     // one of the only non-generic structs with public fields
 | |
|     'query': 'CpuidResult -> u32',
 | |
|     'others': [
 | |
|         { 'path': 'core::arch::x86::CpuidResult', 'name': 'eax' },
 | |
|     ],
 | |
| }
 |