aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src
diff options
context:
space:
mode:
authorErlend Tobiassen <[email protected]>2019-01-22 13:32:23 +0000
committerErlend Tobiassen <[email protected]>2019-01-22 13:32:23 +0000
commit8198cde13b8dc7c04190e5341bce3f6a0315e99b (patch)
tree82055bb2f22705916bec975bc5bf813e733e26ec /crates/ra_syntax/src
parent2b22f5fb4398378d999db98ea270ceb415dfff22 (diff)
Update tests after allowing where predicate to accept types
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r--crates/ra_syntax/src/grammar/type_params.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar/type_params.rs b/crates/ra_syntax/src/grammar/type_params.rs
index a7eacf97a..369125b39 100644
--- a/crates/ra_syntax/src/grammar/type_params.rs
+++ b/crates/ra_syntax/src/grammar/type_params.rs
@@ -149,6 +149,11 @@ fn where_predicate(p: &mut Parser) {
149 p.error("expected lifetime or type"); 149 p.error("expected lifetime or type");
150 } 150 }
151 _ => { 151 _ => {
152 // test where_pred_for
153 // fn test<F>()
154 // where
155 // for<'a> F: Fn(&'a str)
156 // { }
152 types::type_(p); 157 types::type_(p);
153 158
154 if p.at(COLON) { 159 if p.at(COLON) {