We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e9a63f commit b26ae28Copy full SHA for b26ae28
src/libsyntax/parse/parser.rs
@@ -2728,8 +2728,9 @@ pub impl Parser {
2728
}
2729
self.bump();
2730
2731
- token::IDENT(*) => {
+ token::MOD_SEP | token::IDENT(*) => {
2732
let maybe_bound = match *self.token {
2733
+ token::MOD_SEP => None,
2734
token::IDENT(copy sid, _) => {
2735
match *self.id_to_str(sid) {
2736
~"send" |
@@ -2757,7 +2758,7 @@ pub impl Parser {
2757
2758
result.push(bound);
2759
2760
None => {
- let ty = self.parse_ty(false);
2761
+ let ty = self.parse_ty(true);
2762
result.push(TraitTyParamBound(ty));
2763
2764
src/test/run-pass/issue-5572.rs
@@ -0,0 +1,3 @@
1
+fn foo<T: ::cmp::Eq>(t: T) { }
2
+
3
+fn main() { }
0 commit comments