summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue-5023.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/target/issue-5023.rs')
-rw-r--r--src/tools/rustfmt/tests/target/issue-5023.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/target/issue-5023.rs b/src/tools/rustfmt/tests/target/issue-5023.rs
new file mode 100644
index 000000000..4e84c7d98
--- /dev/null
+++ b/src/tools/rustfmt/tests/target/issue-5023.rs
@@ -0,0 +1,23 @@
+// rustfmt-wrap_comments: true
+
+/// A comment to test special unicode characters on boundaries
+/// 是,是,是,是,是,是,是,是,是,是,是,是 it should break right here
+/// this goes to the next line
+fn main() {
+ if xxx {
+ let xxx = xxx
+ .into_iter()
+ .filter(|(xxx, xxx)| {
+ if let Some(x) = Some(1) {
+ // xxxxxxxxxxxxxxxxxx, xxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx xxx xxxxxxx, xxxxx xxx
+ // xxxxxxxxxx. xxxxxxxxxxxxxxxx,xxxxxxxxxxxxxxxxx xxx xxxxxxx
+ // 是sdfadsdfxxxxxxxxx,sdfaxxxxxx_xxxxx_masdfaonxxx,
+ if false {
+ return true;
+ }
+ }
+ false
+ })
+ .collect();
+ }
+}