From 778aec998b0a4a34632b22abd8c1cfa599fe78f0 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 22 Jan 2013 14:37:32 -0800 Subject: libsyntax: Implement the `+` syntax for multiple trait bounds. r=tjc --- src/libsyntax/parse/parser.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 61105f6297d..e1fc23276bc 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -2531,6 +2531,10 @@ impl Parser { } else { break; } + + if self.eat(token::BINOP(token::PLUS)) { + // Should be `break;` but that isn't backwards compatible. + } } } return @move bounds; -- cgit 1.4.1-3-g733a5