]> git.lizzy.rs Git - rust.git/commitdiff
Add a test for assignment whose lhs is exactly 100 chars
authortopecongiro <seuchida@gmail.com>
Mon, 20 Nov 2017 23:50:55 +0000 (08:50 +0900)
committertopecongiro <seuchida@gmail.com>
Mon, 20 Nov 2017 23:50:55 +0000 (08:50 +0900)
tests/source/expr.rs
tests/target/expr.rs

index 1a8d35f2f0c915a8a4d59410d68627260917dab8..4f7a7fb70a70a3ea85cefb31290794a738704d20 100644 (file)
@@ -45,6 +45,11 @@ fn foo() -> bool {
  + 2 + 3 {
     }
 
+    if let ast::ItemKind::Trait(_, unsafety, ref generics, ref type_param_bounds, ref trait_items) = item.node
+    {
+        // nothing
+    }
+
     let test = if true { 5 } else { 3 };
 
     if cond() {
index 08803e5db4e20d685b833a2d97c1afd8ccdcacdf..f67c149b542cc2efbaa4069cd6866af4d5b3d1e7 100644 (file)
@@ -70,6 +70,12 @@ fn foo() -> bool {
     ) = 1 + 2 + 3
     {}
 
+    if let ast::ItemKind::Trait(_, unsafety, ref generics, ref type_param_bounds, ref trait_items) =
+        item.node
+    {
+        // nothing
+    }
+
     let test = if true { 5 } else { 3 };
 
     if cond() {