]> git.lizzy.rs Git - rust.git/blobdiff - tests/source/macros.rs
Ignore empty lines inside arguments of macro with brace
[rust.git] / tests / source / macros.rs
index d8e6efe9199c1bfd60fa6116abd2ae9cba19c36d..aa2861ecd173fe3ab7e0e006c8d035781ea75fb2 100644 (file)
@@ -134,6 +134,21 @@ fn issue_1885() {
     }).collect::<Vec<_>>();
 }
 
+fn issue_1917() {
+    mod x {
+        quickcheck! {
+            fn test(a: String, s: String, b: String) -> TestResult {
+                if a.find(&s).is_none() {
+
+                    TestResult::from_bool(true)
+                } else {
+                    TestResult::discard()
+                }
+            }
+        }
+    }
+}
+
 // Put the following tests with macro invocations whose arguments cannot be parsed as expressioins
 // at the end of the file for now.