rust/tests/target/spaces-around-ranges.rs

16 lines
277 B
Rust
Raw Normal View History

2016-09-16 23:44:51 +00:00
// rustfmt-spaces_around_ranges: true
fn bar(v: &[u8]) {}
fn foo() {
let a = vec![0; 20];
for j in 0 ... 20 {
for i in 0 .. 3 {
bar(a[i .. j]);
bar(a[i ..]);
bar(a[.. j]);
bar(a[... (j + 1)]);
}
}
}