blob: 8d5840ae9e79037c76019a241bb0d945af78f88b (
plain)
1
2
3
4
5
6
7
8
9
10
|
// Check usage and precedence of block arguments in expressions:
pub fn main() {
let v = vec![-1.0f64, 0.0, 1.0, 2.0, 3.0];
// Statement form does not require parentheses:
for i in &v {
println!("{}", *i);
}
}
|