aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar/type_params.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar/type_params.rs')
-rw-r--r--crates/libsyntax2/src/grammar/type_params.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/libsyntax2/src/grammar/type_params.rs b/crates/libsyntax2/src/grammar/type_params.rs
index 0a3e8fd07..32b69dc5b 100644
--- a/crates/libsyntax2/src/grammar/type_params.rs
+++ b/crates/libsyntax2/src/grammar/type_params.rs
@@ -121,7 +121,12 @@ fn where_predicate(p: &mut Parser) {
121 lifetime_bounds(p) 121 lifetime_bounds(p)
122 } else { 122 } else {
123 types::path_type(p); 123 types::path_type(p);
124 bounds(p); 124 if p.at(COLON) {
125 bounds(p);
126 } else {
127 p.error("expected colon")
128 }
129
125 } 130 }
126 m.complete(p, WHERE_PRED); 131 m.complete(p, WHERE_PRED);
127} 132}