summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/crashes/ice-4775.rs
blob: f693aafd1cbb6df7d271b641e9d49c8797f47e96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![allow(clippy::uninlined_format_args)]

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() {}