]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/old-closure-arg.rs
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / closures / old-closure-arg.rs
1 // run-pass
2 // Check usage and precedence of block arguments in expressions:
3 pub fn main() {
4     let v = vec![-1.0f64, 0.0, 1.0, 2.0, 3.0];
5
6     // Statement form does not require parentheses:
7     for i in &v {
8         println!("{}", *i);
9     }
10
11 }