2021-08-27 18:04:57 +02:00
|
|
|
// run-pass
|
2020-09-09 09:43:53 +02:00
|
|
|
trait Bar<T> {}
|
2021-08-27 18:04:57 +02:00
|
|
|
impl<T> Bar<T> for [u8; 7] {}
|
2020-09-09 09:43:53 +02:00
|
|
|
|
|
|
|
|
struct Foo<const N: usize> {}
|
|
|
|
|
impl<const N: usize> Foo<N>
|
|
|
|
|
where
|
|
|
|
|
[u8; N]: Bar<[(); N]>,
|
|
|
|
|
{
|
|
|
|
|
fn foo() {}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
Foo::foo();
|
|
|
|
|
}
|