Skip to content

Commit

Permalink
Add regression test for ICE #4775
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed Nov 6, 2019
1 parent d3e88a5 commit 073dbd4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/ui/ice-4775.rs
Original file line number Diff line number Diff line change
@@ -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() {}

0 comments on commit 073dbd4

Please sign in to comment.