rust/tests/source/configs/spaces_around_ranges/true.rs
2018-03-02 15:07:13 +13:00

23 lines
324 B
Rust

// rustfmt-spaces_around_ranges: true
// Spaces around ranges
fn main() {
let lorem = 0..10;
let ipsum = 0..=10;
match lorem {
1..5 => foo(),
_ => bar,
}
match lorem {
1..=5 => foo(),
_ => bar,
}
match lorem {
1...5 => foo(),
_ => bar,
}
}