summaryrefslogtreecommitdiffstats
path: root/tests/ui/const-generics/bad-subst-const-kind.rs
blob: e13dfbacd242225c5eb374973abe9b1c3db57ca2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// incremental
#![crate_type = "lib"]

trait Q {
    const ASSOC: usize;
}

impl<const N: u64> Q for [u8; N] {
    //~^ ERROR mismatched types
    const ASSOC: usize = 1;
}

pub fn test() -> [u8; <[u8; 13] as Q>::ASSOC] { todo!() }