diff options
author | DJMcNab <[email protected]> | 2019-01-10 18:21:01 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2019-01-10 18:21:01 +0000 |
commit | afdb56990212eb385e77fff9a6316a16e50bd1d4 (patch) | |
tree | 8a90b787c2aa3377dc5eea4baa024a2d9442dbd3 /crates/ra_syntax/src/grammar/items/nominal.rs | |
parent | 1a7a68de165fe89457e130de90e50a90c0b0d3c2 (diff) |
Fix handling of where clauses in tuple structs
Diffstat (limited to 'crates/ra_syntax/src/grammar/items/nominal.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/items/nominal.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar/items/nominal.rs b/crates/ra_syntax/src/grammar/items/nominal.rs index 8d02ad555..495462ca7 100644 --- a/crates/ra_syntax/src/grammar/items/nominal.rs +++ b/crates/ra_syntax/src/grammar/items/nominal.rs | |||
@@ -29,6 +29,10 @@ pub(super) fn struct_def(p: &mut Parser, kind: SyntaxKind) { | |||
29 | L_CURLY => named_field_def_list(p), | 29 | L_CURLY => named_field_def_list(p), |
30 | L_PAREN if kind == STRUCT_KW => { | 30 | L_PAREN if kind == STRUCT_KW => { |
31 | pos_field_list(p); | 31 | pos_field_list(p); |
32 | // test tuple_struct_where | ||
33 | // struct Test<T>(T) where T: Clone; | ||
34 | // struct Test<T>(T); | ||
35 | type_params::opt_where_clause(p); | ||
32 | p.expect(SEMI); | 36 | p.expect(SEMI); |
33 | } | 37 | } |
34 | _ if kind == STRUCT_KW => { | 38 | _ if kind == STRUCT_KW => { |