mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-30 20:44:34 +00:00 
			
		
		
		
	 95ff642797
			
		
	
	
		95ff642797
		
	
	
	
	
		
			
			Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
		
			
				
	
	
		
			14 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			290 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //@ run-pass
 | |
| 
 | |
| 
 | |
| // issues #10618 and #16382
 | |
| 
 | |
| const SIZE: isize = 25;
 | |
| 
 | |
| fn main() {
 | |
|     let _a: [bool; 1 as usize];
 | |
|     let _b: [isize; SIZE as usize] = [1; SIZE as usize];
 | |
|     let _c: [bool; '\n' as usize] = [true; '\n' as usize];
 | |
|     let _d: [bool; true as usize] = [true; true as usize];
 | |
| }
 |