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 ff86b27 commit cc6c774Copy full SHA for cc6c774
compiler/rustc_parse/src/parser/diagnostics.rs
@@ -606,6 +606,8 @@ impl<'a> Parser<'a> {
606
&& expected.iter().any(|tok| matches!(tok, TokenType::Token(TokenKind::Gt)))
607
{
608
err.span_label(self.prev_token.span, "maybe try to close unmatched angle bracket");
609
+ } else if self.token == token::FatArrow {
610
+ err.help("closures are written `|a, b| a + b` and greater-than-or-equal is `>=`.");
611
}
612
613
let sp = if self.token == token::Eof {
0 commit comments