rust/tests/ui/crashes/ice-4775.rs

14 lines
259 B
Rust
Raw Normal View History

#![allow(clippy::uninlined_format_args)]
2019-11-06 11:15:04 -06:00
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() {}