-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 generics: Clippy: "expected bits of usize, got Const" #4775
Comments
cc @rust-lang/clippy -- this could probably be transferred to Clippy? |
Here is a minimal reproducer: #![feature(const_generics)]
#![allow(incomplete_features)]
pub struct ArrayWrapper<const N: usize>([usize; N]);
impl<const N: usize> ArrayWrapper<{ N }> {
pub fn ice(&self) {
for i in self.0.iter() {
println!("{}", i);
}
}
} |
Relevant (debug) backtrace for this:
It tries to call and the I think just bailing out, when |
Issue still happens in this repository.
|
That is another ICE. Can you open a separate issue? |
Sure |
I ran into this error
Steps to repro:
It might be about this code:
Meta
Backtrace:
The text was updated successfully, but these errors were encountered: