From 99f6976b202cc8c47b95d6443d23a5745dcf8010 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 8 Aug 2018 17:33:16 +0300 Subject: bouds in types --- src/grammar/types.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/grammar') 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) { assert!(paths::is_path_start(p)); let m = p.start(); paths::type_path(p); + // test path_type_with_bounds + // fn foo() -> Box {} + if p.eat(PLUS) { + type_params::bounds_without_colon(p); + } m.complete(p, PATH_TYPE); } -- cgit v1.2.3