]> git.lizzy.rs Git - rust.git/blob - tests/source/issue-3272/v1.rs
Prevent duplicate comma when formatting struct pattern with ".."
[rust.git] / tests / source / issue-3272 / v1.rs
1 // rustfmt-version: One
2
3 fn main() {
4     assert!(HAYSTACK
5             .par_iter()
6             .find_any(|&&x| x[0] % 1000 == 999)
7             .is_some());
8
9     assert(
10         HAYSTACK
11             .par_iter()
12             .find_any(|&&x| x[0] % 1000 == 999)
13             .is_some(),
14     );
15 }