]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/crashes/ice-4775.rs
Rollup merge of #86828 - lambinoo:67441-const-fn-copied-take-replace, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / crashes / ice-4775.rs
1 pub struct ArrayWrapper<const N: usize>([usize; N]);
2
3 impl<const N: usize> ArrayWrapper<{ N }> {
4     pub fn ice(&self) {
5         for i in self.0.iter() {
6             println!("{}", i);
7         }
8     }
9 }
10
11 fn main() {}