mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			239 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			239 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| //! Regression test for https://github.com/rust-lang/rust/issues/15673
 | |
| 
 | |
| //@ run-pass
 | |
| #![allow(stable_features)]
 | |
| 
 | |
| #![feature(iter_arith)]
 | |
| 
 | |
| fn main() {
 | |
|     let x: [u64; 3] = [1, 2, 3];
 | |
|     assert_eq!(6, (0..3).map(|i| x[i]).sum::<u64>());
 | |
| }
 | 
