rust/tests/ui/const-generics/issues/issue-69654-run-pass.rs
2023-01-11 09:32:08 +00:00

16 lines
201 B
Rust

// run-pass
trait Bar<T> {}
impl<T> Bar<T> for [u8; 7] {}
struct Foo<const N: usize> {}
impl<const N: usize> Foo<N>
where
[u8; N]: Bar<[(); N]>,
{
fn foo() {}
}
fn main() {
Foo::foo();
}