mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			308 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			308 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| // aux-build:const_generic_lib.rs
 | |
| 
 | |
| extern crate const_generic_lib;
 | |
| 
 | |
| fn main() {
 | |
|     let _ = const_generic_lib::function(const_generic_lib::Struct([0u8, 1u8]));
 | |
|     //~^ ERROR mismatched types
 | |
|     let _: const_generic_lib::Alias = const_generic_lib::Struct([0u8, 1u8, 2u8]);
 | |
|     //~^ ERROR mismatched types
 | |
| }
 | 
