Files
OnJava8/docs/_style/prism-master/tests/languages/rust/closure-params_feature.test
2019-03-30 20:31:44 +08:00

30 lines
580 B
Plaintext

|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.