1
Fork 0

Minor let_chains modification

This commit is contained in:
Caio 2022-03-25 18:50:52 -03:00
parent 09be68c869
commit 9e0b7c3f44
2 changed files with 15 additions and 12 deletions

View file

@ -122,7 +122,10 @@ impl<'a> AstValidator<'a> {
diag.note("only supported directly in conditions of `if` and `while` expressions");
diag.note("as well as when nested within `&&` and parentheses in those conditions");
if let ForbiddenLetReason::ForbiddenWithOr(span) = forbidden_let_reason {
diag.span_note(span, "`||` operators are not allowed in let chain expressions");
diag.span_note(
span,
"`||` operators are not currently supported in let chain expressions",
);
}
diag.emit();
} else {