summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-4775.rs
blob: 405e3039e7d0c6f8487953b4296cb29ba075e4ac (plain)
1
2
3
4
5
6
7
8
9
10
11
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() {}