]> git.lizzy.rs Git - rust.git/blob - src/test/ui/block-arg.rs
rustdoc: Fix handling of compile errors when running `rustdoc --test`
[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 }