mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			33 lines
		
	
	
		
			688 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			688 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // exact-check
 | |
| 
 | |
| const QUERY = [
 | |
|     'Result<SomeTrait>',
 | |
|     'Zzzzzzzzzzzzzzzzzz',
 | |
|     'Nonononononononono',
 | |
| ];
 | |
| 
 | |
| const EXPECTED = [
 | |
|     // check one of the generic items
 | |
|     {
 | |
|         'in_args': [
 | |
|             { 'path': 'generics_multi_trait', 'name': 'beta' },
 | |
|         ],
 | |
|         'returned': [
 | |
|             { 'path': 'generics_multi_trait', 'name': 'bet' },
 | |
|         ],
 | |
|     },
 | |
|     {
 | |
|         'in_args': [
 | |
|             { 'path': 'generics_multi_trait', 'name': 'beta' },
 | |
|         ],
 | |
|         'returned': [
 | |
|             { 'path': 'generics_multi_trait', 'name': 'bet' },
 | |
|         ],
 | |
|     },
 | |
|     // ignore the name of the generic itself
 | |
|     {
 | |
|         'in_args': [],
 | |
|         'returned': [],
 | |
|     },
 | |
| ];
 | 
