about summary refs log tree commit diff
path: root/tests/ui/const-generics/issues/issue-69654-run-pass.rs
blob: 21d6270b1fafa6137e70967ce2102d30d7085e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass
trait Bar<T> {} //~ WARN trait `Bar` is never used
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();
}