]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/spaces-around-ranges.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / spaces-around-ranges.rs
CommitLineData
f20569fa
XL
1// rustfmt-spaces_around_ranges: true
2
3fn bar(v: &[u8]) {}
4
5fn foo() {
6 let a = vec![0; 20];
7 for j in 0 ..= 20 {
8 for i in 0 .. 3 {
9 bar(a[i .. j]);
10 bar(a[i ..]);
11 bar(a[.. j]);
12 bar(a[..= (j + 1)]);
13 }
14 }
15}