forked from rust-lang/rfcs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify RFC rust-lang#803 (type ascription) to make type ascription ex…
…pressions lvalues.
- Loading branch information
Showing
1 changed file
with
4 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is, I think, some grammatical problem here that is making it difficult for me to parse this new sentence.
In particular, the sentence ends with "..., then we require ..."; but it is not 100% clear what the precondition for that "then" is.
I suspect what was intended was the text:
(Note that I also put back in the parenthetical text explaining what
<expr>
is...)Also, do we need to add examples of type ascription being used on the left-hand-side of an assignment, since apparently it would now be allowed? (Perhaps it needs to be added to the list of reference contexts?)