Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Parser] parser.rs: Made two error messages less ambiguous #1145

Closed
wants to merge 1 commit into from

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Nov 7, 2011

At the moment, the parser can fail with one of the following error messages:

  • "if without else can not return a value";
  • "this block must not have a result".

These messages have mislead me into believing that the problems I encountered were related to ret, whereas they were actually due to missing ;. I suggest a slight rephrasing to make things less ambiguous.

@brson
Copy link
Contributor

brson commented Nov 7, 2011

Integrated. Thanks!

@brson brson closed this Nov 7, 2011
bjorn3 added a commit to bjorn3/rust that referenced this pull request Mar 29, 2021
Support cross-compiling to Windows using MinGW
coastalwhite pushed a commit to coastalwhite/rust that referenced this pull request Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants