]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/target/issue-5023.rs
:arrow_up: rust-analyzer
[rust.git] / src / tools / rustfmt / tests / target / issue-5023.rs
1 // rustfmt-wrap_comments: true
2
3 /// A comment to test special unicode characters on boundaries
4 /// 是,是,是,是,是,是,是,是,是,是,是,是  it should break right here
5 /// this goes to the next line
6 fn main() {
7     if xxx {
8         let xxx = xxx
9             .into_iter()
10             .filter(|(xxx, xxx)| {
11                 if let Some(x) = Some(1) {
12                     // xxxxxxxxxxxxxxxxxx, xxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx xxx xxxxxxx, xxxxx xxx
13                     // xxxxxxxxxx. xxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxx xxx xxxxxxx
14                     // 是sdfadsdfxxxxxxxxx,sdfaxxxxxx_xxxxx_masdfaonxxx,
15                     if false {
16                         return true;
17                     }
18                 }
19                 false
20             })
21             .collect();
22     }
23 }