Add regression test for ICE #4775
This commit is contained in:
parent
d3e88a58b9
commit
073dbd4218
14
tests/ui/ice-4775.rs
Normal file
14
tests/ui/ice-4775.rs
Normal file
@ -0,0 +1,14 @@
|
||||
#![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() {}
|
Loading…
Reference in New Issue
Block a user