mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-12 22:32:59 +00:00
15 lines
277 B
Rust
15 lines
277 B
Rust
|
#![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() {}
|