File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
compiler/rustc_parse/src/parser Expand file tree Collapse file tree 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> {
14861486 // `check_trailing_angle_brackets` already emitted a nicer error
14871487 // NOTE(eddyb) this was `.cancel()`, but `err`
14881488 // gets returned, so we can't fully defuse it.
1489- err. downgrade_to_delayed_bug ( ) ;
1489+ err. delay_as_bug ( ) ;
14901490 }
14911491 }
14921492 }
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