23 lines
324 B
Rust
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,
|
|
}
|
|
}
|