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