commit | ff46fd206bed19a4e79cace4664e43874a9368c8 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sat Oct 08 13:53:28 2016 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sat Oct 08 13:53:28 2016 -0700 |
tree | 4c67f30dc783fcbbb3f2ecc140e57be40718a0dd | |
parent | 674258dd6582c982508861b3bafda41bf5fe5282 [diff] [blame] |
Terminated list helper
diff --git a/src/generics.rs b/src/generics.rs index dc3dd0d..3d7bd86 100644 --- a/src/generics.rs +++ b/src/generics.rs
@@ -227,7 +227,7 @@ named!(pub bound_lifetimes -> Vec<LifetimeDef>, opt_vec!(do_parse!( keyword!("for") >> punct!("<") >> - lifetimes: separated_list!(punct!(","), lifetime_def) >> + lifetimes: terminated_list!(punct!(","), lifetime_def) >> punct!(">") >> (lifetimes) )));