about summary refs log tree commit diff
path: root/tests/ui/const-generics/const-param-type-depends-on-parent-param.rs
blob: 83fe8c139f90d477037e8a221848bec246f2d148 (plain)
1
2
3
4
5
6
7
8
#![feature(adt_const_params)]

trait Trait<const N: usize> {
    fn foo<const M: [u8; N]>() {}
    //~^ ERROR the type of const parameters must not depend on other generic parameters
}

fn main() {}