]> git.lizzy.rs Git - rust.git/blob - src/tools/rustfmt/tests/source/issue-5023.rs
Rollup merge of #107166 - petrochenkov:nooptable, r=oli-obk
[rust.git] / src / tools / rustfmt / tests / source / 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 this goes to the next line
5 fn main() {
6     if xxx {
7         let xxx = xxx
8             .into_iter()
9             .filter(|(xxx, xxx)| {
10                 if let Some(x) = Some(1) {
11                     // xxxxxxxxxxxxxxxxxx, xxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx xxx xxxxxxx, xxxxx xxx
12                     // xxxxxxxxxx. xxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxx xxx xxxxxxx
13                     // 是sdfadsdfxxxxxxxxx,sdfaxxxxxx_xxxxx_masdfaonxxx,
14                     if false {
15                         return true;
16                     }
17                 }
18                 false
19             })
20             .collect();
21     }
22 }