This commit is contained in:
2020-03-22 19:37:00 +08:00
parent 341f8b46bf
commit a811d3d8fd

11
single_file_tests/for.rs Normal file
View File

@@ -0,0 +1,11 @@
fn main() {
for i in 0.. {
print!("{} ", i);
if i >= 10 { break; }
}
println!();
vec!(0, 1, 3, 4, 5).iter().map(|x| x * 2).for_each(|x| print!("{}, ", x));
println!();
}