diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/grammar/types.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/grammar/types.rs b/src/grammar/types.rs index 9e63c9b2a..03a087acd 100644 --- a/src/grammar/types.rs +++ b/src/grammar/types.rs | |||
@@ -203,5 +203,10 @@ fn path_type(p: &mut Parser) { | |||
203 | assert!(paths::is_path_start(p)); | 203 | assert!(paths::is_path_start(p)); |
204 | let m = p.start(); | 204 | let m = p.start(); |
205 | paths::type_path(p); | 205 | paths::type_path(p); |
206 | // test path_type_with_bounds | ||
207 | // fn foo() -> Box<T + 'f> {} | ||
208 | if p.eat(PLUS) { | ||
209 | type_params::bounds_without_colon(p); | ||
210 | } | ||
206 | m.complete(p, PATH_TYPE); | 211 | m.complete(p, PATH_TYPE); |
207 | } | 212 | } |