rust/tests/target/issue-3601.rs

12 lines
165 B
Rust
Raw Normal View History

#![feature(const_generics)]
trait A {
fn foo(&self);
}
pub struct B<const N: usize>([usize; N]);
impl<const N: usize> A for B<{ N }> {
fn foo(&self) {}
}