2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2015-03-22 15:13:15 -05:00
|
|
|
|
2013-09-25 02:43:37 -05:00
|
|
|
pub fn main() {
|
2015-01-25 15:05:03 -06:00
|
|
|
let x = [1; 100];
|
|
|
|
let mut y = 0;
|
2013-08-03 11:45:23 -05:00
|
|
|
for (n,i) in x.iter().enumerate() {
|
2013-07-30 20:46:40 -05:00
|
|
|
if n < 10 {
|
2013-10-01 16:31:03 -05:00
|
|
|
continue;
|
2013-07-30 20:46:40 -05:00
|
|
|
}
|
|
|
|
y += *i;
|
|
|
|
}
|
|
|
|
assert_eq!(y, 90);
|
|
|
|
}
|