aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs
diff options
context:
space:
mode:
authorToby Dimmick <[email protected]>2020-02-06 11:44:00 +0000
committerToby Dimmick <[email protected]>2020-02-06 19:45:51 +0000
commit7e66785859fc4a31fc3faf4848174699d3a2c020 (patch)
tree94a61899b4628eeca7a21a58c061b343bcf32e62 /crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs
parenta4431e83025223d5aea0ae3d49a6356775cb5f75 (diff)
Rework value parameter parsing
- `Fn__(...)` parameters with idents/patterns no longer parse - Trait function parameters with arbitrary patterns parse - Trait function parameters without idents/patterns no longer parse - `fn(...)` parameters no longer parse with patterns other than a single ident
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs b/crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs
new file mode 100644
index 000000000..b49e872d7
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0152_fn_patterns.rs
@@ -0,0 +1,6 @@
1impl U {
2 fn f1((a, b): (usize, usize)) {}
3 fn f2(S { a, b }: S) {}
4 fn f3(NewType(a): NewType) {}
5 fn f4(&&a: &&usize) {}
6}