mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +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
		
	
	
		
			171 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			171 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const EXPECTED = {
 | |
|     'query': '-> char',
 | |
|     'others': [
 | |
|         { 'path': 'std::char', 'name': 'from_digit' },
 | |
|         { 'path': 'std::char', 'name': 'MAX' },
 | |
|     ],
 | |
| }
 |