2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2024-12-23 19:43:20 +00:00
rust-clippy/tests/ui/crashes/ice-4775.rs
2019-12-31 20:55:12 +09:00

14 lines
277 B
Rust

#![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);
}
}
}
fn main() {}