2017-12-22 15:26:26 +00:00
|
|
|
fn main() {
|
2017-12-22 15:29:59 +00:00
|
|
|
let a = [10, 20, 30, 40, 50];
|
2017-12-22 15:27:43 +00:00
|
|
|
|
2017-12-22 15:32:00 +00:00
|
|
|
for element in a.iter() {
|
|
|
|
println!("the value is: {}", element);
|
2017-12-22 15:28:49 +00:00
|
|
|
}
|
2017-12-22 15:26:26 +00:00
|
|
|
}
|