]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-arg.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / block-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 }