Skip to content

Commit 073dbd4

Browse files
committed
Add regression test for ICE #4775
1 parent d3e88a5 commit 073dbd4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/ui/ice-4775.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#![feature(const_generics)]
2+
#![allow(incomplete_features)]
3+
4+
pub struct ArrayWrapper<const N: usize>([usize; N]);
5+
6+
impl<const N: usize> ArrayWrapper<{ N }> {
7+
pub fn ice(&self) {
8+
for i in self.0.iter() {
9+
println!("{}", i);
10+
}
11+
}
12+
}
13+
14+
fn main() {}

0 commit comments

Comments
 (0)