]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/formatting.rs
iterate List by value
[rust.git] / tests / ui / formatting.rs
index 149f1da93966c5d6d9524e41029c0b04e2eba4d7..078811b8d882b8ba378b8f3b86409f82a8b8fbb5 100644 (file)
@@ -143,4 +143,15 @@ fn main() {
         true
         | false,
     ];
+
+    // don't lint if the indentation suggests not to
+    let _ = &[
+        1 + 2, 3 
+                - 4, 5
+    ];
+    // lint if it doesnt
+    let _ = &[
+        -1
+        -4,
+    ];
 }