-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Cannot use _
for const arguments
#70754
Comments
The error is technically correct, but confusing indeed. What happens here is that (as I noted in the other issue you filed, #70753) Instead, we would want to interpret cc the usual suspects, @varkor @petrochenkov @eddyb |
Yeah, when I initially typed the issue up, I wrote "which, while technically accurate, is pretty jarring", but then decided it wasn't necessary :p |
Handling it in the ast is not actually enough afaict as we require type inference to know what kind of arg is required. So we probably have to update see #66615 (comment) |
_
for const arguments
@Centril |
|
implemented under Closing this issue |
I tried this code:
I only half-expected the code to compile, given where const generics is at (is inference of const generic arguments even intended to eventually work?), but the resulting error was pretty jarring:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: