File tree 3 files changed +18
-1
lines changed
compiler/rustc_parse/src/parser
3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -1486,7 +1486,7 @@ impl<'a> Parser<'a> {
1486
1486
// `check_trailing_angle_brackets` already emitted a nicer error
1487
1487
// NOTE(eddyb) this was `.cancel()`, but `err`
1488
1488
// gets returned, so we can't fully defuse it.
1489
- err. downgrade_to_delayed_bug ( ) ;
1489
+ err. delay_as_bug ( ) ;
1490
1490
}
1491
1491
}
1492
1492
}
Original file line number Diff line number Diff line change
1
+ struct TypedArenaChunk {
2
+ next : Option < String > >
3
+ //~^ ERROR unmatched angle bracket
4
+ }
5
+
6
+ fn main ( ) { }
Original file line number Diff line number Diff line change
1
+ error: unmatched angle bracket
2
+ --> $DIR/recover-field-extra-angle-brackets-in-struct-with-a-field.rs:2:25
3
+ |
4
+ LL | next: Option<String>>
5
+ | _________________________^
6
+ LL | |
7
+ LL | | }
8
+ | |_ help: remove extra angle bracket
9
+
10
+ error: aborting due to previous error
11
+
You can’t perform that action at this time.
0 commit comments