Index: lib/src/prism/tests/languages/rust/closure-params_feature.test |
diff --git a/lib/src/prism/tests/languages/rust/closure-params_feature.test b/lib/src/prism/tests/languages/rust/closure-params_feature.test |
new file mode 100644 |
index 0000000000000000000000000000000000000000..83bf90004c2dc9b76fbf6dd28a554c05816514b5 |
--- /dev/null |
+++ b/lib/src/prism/tests/languages/rust/closure-params_feature.test |
@@ -0,0 +1,30 @@ |
+|x: int, y: int| -> int {} |
+|| {} |
+ |
+---------------------------------------------------- |
+ |
+[ |
+ ["closure-params", [ |
+ ["punctuation", "|"], |
+ "x", |
+ ["punctuation", ":"], |
+ " int", |
+ ["punctuation", ","], |
+ " y", |
+ ["punctuation", ":"], |
+ " int", |
+ ["punctuation", "|"] |
+ ]], |
+ ["punctuation", "->"], |
+ " int ", ["punctuation", "{"], ["punctuation", "}"], |
+ |
+ ["closure-params", [ |
+ ["punctuation", "|"], |
+ ["punctuation", "|"] |
+ ]], |
+ ["punctuation", "{"], ["punctuation", "}"] |
+] |
+ |
+---------------------------------------------------- |
+ |
+Checks for closure params. |