-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Bad interaction between missing semicolon in fully qualified fn path and type ascription #54516
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
Comments
CC #47666 |
After #59150, if you add a comma where it asks for one the output is slightly better:
|
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 26, 2019
Expand suggestions for type ascription parse errors Fix rust-lang#51222. CC rust-lang#48016, rust-lang#47666, rust-lang#54516, rust-lang#34255.
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 26, 2019
Expand suggestions for type ascription parse errors Fix rust-lang#51222. CC rust-lang#48016, rust-lang#47666, rust-lang#54516, rust-lang#34255.
Centril
added a commit
to Centril/rust
that referenced
this issue
Mar 26, 2019
Expand suggestions for type ascription parse errors Fix rust-lang#51222. CC rust-lang#48016, rust-lang#47666, rust-lang#54516, rust-lang#34255.
estebank
changed the title
Suboptimal warning/error/suggestion
Bad interaction between missing semicolon in fully qualified fn path and type ascription
Apr 30, 2019
Centril
added a commit
to Centril/rust
that referenced
this issue
Jul 21, 2019
…enkov Handle more cases of typos misinterpreted as type ascription Fix rust-lang#60933, rust-lang#54516. CC rust-lang#47666, rust-lang#34255, rust-lang#48016.
Mark-Simulacrum
added a commit
to Mark-Simulacrum/rust
that referenced
this issue
Jul 23, 2019
…enkov Handle more cases of typos misinterpreted as type ascription Fix rust-lang#60933, rust-lang#54516. CC rust-lang#47666, rust-lang#34255, rust-lang#48016.
Current output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is almost a feature request. This code:
Gives the errors (rustc 1.30.0-nightly 4591a24 2018-09-22):
But the problem is a missing : after std::mem:. Can rustc give a better error message here?
The text was updated successfully, but these errors were encountered: