We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the following code, I forgot a semicolon:
fn main() { Box:new("foo".to_string()) }
This generates the following error:
| 2 | Box:new("foo".to_string()) | ^^^^^ expecting a type here because of type ascription
This may get confusing when nesting multiple calls in the argument of Box::new.
Box::new
ping @GuillaumeGomez
The text was updated successfully, but these errors were encountered:
cc #34255, #48016.
Sorry, something went wrong.
CC #54516
CC #47666
Rollup merge of rust-lang#59150 - estebank:type-ascription, r=varkor
3e7a5fd
Expand suggestions for type ascription parse errors Fix rust-lang#51222. CC rust-lang#48016, rust-lang#47666, rust-lang#54516, rust-lang#34255.
bc3295c
b316514
No branches or pull requests
In the following code, I forgot a semicolon:
This generates the following error:
This may get confusing when nesting multiple calls in the argument of
Box::new
.ping @GuillaumeGomez
The text was updated successfully, but these errors were encountered: