mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			218 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			218 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| #![crate_type = "lib"]
 | |
| 
 | |
| fn example<const N: usize>() {}
 | |
| 
 | |
| fn other() {
 | |
|     example::<[usize; 3]>();
 | |
|     //~^ ERROR type provided when a const
 | |
|     example::<[usize; 4 + 5]>();
 | |
|     //~^ ERROR type provided when a const
 | |
| }
 | 
