File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4731,8 +4731,8 @@ impl<'a> Parser<'a> {
47314731 ( fields, Some ( ast:: DUMMY_NODE_ID ) )
47324732 } else {
47334733 let token_str = self . this_token_to_string ( ) ;
4734- return Err ( self . fatal ( & format ! ( "expected `where`, `{} `, `(`, or `;` after struct \
4735- name, found `{}`", "{" , token_str) ) )
4734+ return Err ( self . fatal ( & format ! ( "expected `where`, `{{ `, `(`, or `;` after struct \
4735+ name, found `{}`", token_str) ) )
47364736 } ;
47374737
47384738 Ok ( ( class_name,
@@ -4760,8 +4760,8 @@ impl<'a> Parser<'a> {
47604760 try!( self . bump ( ) ) ;
47614761 } else {
47624762 let token_str = self . this_token_to_string ( ) ;
4763- return Err ( self . fatal ( & format ! ( "expected `where`, or `{} ` after struct \
4764- name, found `{}`", "{" ,
4763+ return Err ( self . fatal ( & format ! ( "expected `where`, or `{{ ` after struct \
4764+ name, found `{}`",
47654765 token_str) ) ) ;
47664766 }
47674767
You can’t perform that action at this time.
0 commit comments