summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/source/binary-expr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/rustfmt/tests/source/binary-expr.rs')
-rw-r--r--src/tools/rustfmt/tests/source/binary-expr.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/rustfmt/tests/source/binary-expr.rs b/src/tools/rustfmt/tests/source/binary-expr.rs
new file mode 100644
index 000000000..f7502931d
--- /dev/null
+++ b/src/tools/rustfmt/tests/source/binary-expr.rs
@@ -0,0 +1,10 @@
+// Binary expressions
+
+fn foo() {
+ // 100
+ let x = aaaaaaaaaa || bbbbbbbbbb || cccccccccc || dddddddddd && eeeeeeeeee || ffffffffff || ggg;
+ // 101
+ let x = aaaaaaaaaa || bbbbbbbbbb || cccccccccc || dddddddddd && eeeeeeeeee || ffffffffff || gggg;
+ // 104
+ let x = aaaaaaaaaa || bbbbbbbbbb || cccccccccc || dddddddddd && eeeeeeeeee || ffffffffff || gggggggg;
+}