]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-4577.rs
Merge commit '39683d8eb7a32a74bea96ecbf1e87675d3338506' into sync_cg_gcc-2022-03-26
[rust.git] / src / tools / rustfmt / tests / target / issue-4577.rs
1 fn main() {
2     let s: String = "ABAABBAA"
3         .chars()
4         .filter(|c| if *c == 'A' { true } else { false })
5         .map(|c| -> char {
6             if c == 'A' {
7                 '0'
8             } else {
9                 '1'
10             }
11         })
12         .collect();
13
14     println!("{}", s);
15 }