Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Final expression of a block cannot be an expression with braces. #54

Open
ehuss opened this issue Jun 28, 2019 · 0 comments
Open

Final expression of a block cannot be an expression with braces. #54

ehuss opened this issue Jun 28, 2019 · 0 comments
Labels
grammar Issues with the definition of the rust grammar restrictions Issues related to the permissiveness of the grammar

Comments

@ehuss
Copy link
Contributor

ehuss commented Jun 28, 2019

That is, the final expression cannot be:

  • block expression
  • unsafe block expression
  • any loop expression
  • if expression
  • if let expression
  • match expression

This applies recursively. That is, the following does not parse: {{1}+{1}}. I do not know how to express that.

@ehuss ehuss added the grammar Issues with the definition of the rust grammar label Jun 28, 2019
@eddyb eddyb added restrictions Issues related to the permissiveness of the grammar and removed restrictions Issues related to the permissiveness of the grammar labels Jul 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Issues with the definition of the rust grammar restrictions Issues related to the permissiveness of the grammar
Projects
None yet
Development

No branches or pull requests

2 participants