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

15 lines
277 B
Rust
Raw Normal View History

2019-11-06 18:15:04 +01:00
#![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() {}