Minor let_chains
modification
This commit is contained in:
parent
09be68c869
commit
9e0b7c3f44
2 changed files with 15 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue