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 @@ -2329,16 +2329,16 @@ pub impl Parser {
2329
2329
let binding_mode =
2330
2330
if refutable { bind_infer} else { bind_by_copy} ;
2331
2331
2332
- let cannot_be_enum_or_struct ;
2332
+ let can_be_enum_or_struct ;
2333
2333
match self . look_ahead ( 1 ) {
2334
2334
token:: LPAREN | token:: LBRACKET | token:: LT |
2335
2335
token:: LBRACE | token:: MOD_SEP =>
2336
- cannot_be_enum_or_struct = false ,
2336
+ can_be_enum_or_struct = true ,
2337
2337
_ =>
2338
- cannot_be_enum_or_struct = true
2338
+ can_be_enum_or_struct = false
2339
2339
}
2340
2340
2341
- if is_plain_ident ( & * self . token ) && cannot_be_enum_or_struct {
2341
+ if is_plain_ident ( & * self . token ) && !can_be_enum_or_struct {
2342
2342
let name = self . parse_path_without_tps ( ) ;
2343
2343
let sub;
2344
2344
if self . eat ( & token:: AT ) {
You can’t perform that action at this time.
0 commit comments