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

Const trait impl is marked as a syntax error #7714

Closed
mbartlett21 opened this issue Feb 18, 2021 · 2 comments
Closed

Const trait impl is marked as a syntax error #7714

mbartlett21 opened this issue Feb 18, 2021 · 2 comments

Comments

@mbartlett21
Copy link

The const trait impl below is marked as a syntax error: expected type.

Rust-analyser should instead parse this, ignoring the const qualifier

impl const Trait for Something {}
//   ^^^^^ Syntax Error: expected type
@Veykril
Copy link
Member

Veykril commented Feb 18, 2021

Are you on the latest version? This has been implemented a few weeks ago #7338

@mbartlett21
Copy link
Author

Updating fixed it :)

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

No branches or pull requests

2 participants