about summary refs log tree commit diff
path: root/tests/source/expr.rs
diff options
context:
space:
mode:
authorMarcus Klaas <mail@marcusklaas.nl>2015-07-19 22:25:44 +0200
committerMarcus Klaas <mail@marcusklaas.nl>2015-07-19 23:43:03 +0200
commit2fda8dd883f5de6989280884a37e408981dfc2ee (patch)
treeb925d9122f5e5d02d765ae9dc251e02a4fda4bbe /tests/source/expr.rs
parentb161815fe0aace4baa7007386b783a88547d7548 (diff)
Format if-let-else expressions
Diffstat (limited to 'tests/source/expr.rs')
-rw-r--r--tests/source/expr.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/source/expr.rs b/tests/source/expr.rs
index d26c57ebbd0..19baa90ace2 100644
--- a/tests/source/expr.rs
+++ b/tests/source/expr.rs
@@ -16,6 +16,20 @@ some_ridiculously_loooooooooooooooooooooong_function(10000 * 30000000000 + 40000
 
      if  1  + 2 > 0  { let result = 5; result } else { 4};
 
+    if  let   Some(x)  =  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa {
+        // Nothing
+    }
+
+    if  let   Some(x)  =  (aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {}
+
+    if let (some_very_large,
+            tuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuple) = 1
+        + 2 + 3 {
+    }
+
+    if let (some_very_large,
+            tuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuple) = 1111 + 2222 {}
+
     if cond() {
         something();
     } else  if different_cond() {