diff options
author | Aleksey Kladov <[email protected]> | 2018-08-08 15:33:16 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-08 15:33:16 +0100 |
commit | 99f6976b202cc8c47b95d6443d23a5745dcf8010 (patch) | |
tree | 30c6638dbf02585c252a415b1a4e6705bd55e3f3 /src | |
parent | 5e0fbd59645ad7a8808a7ae9f3ea394afa475852 (diff) |
bouds in types
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 | } |