about summary refs log tree commit diff
path: root/src/test/ui/const-generics/min_const_generics/generic-sum-in-array-length.rs
blob: de7e5fe47283e65f8c0d36df0e13df73fd9a3dd0 (plain)
1
2
3
4
5
6
7
#![feature(min_const_generics)]

fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
//~^ ERROR generic parameters must not be used inside of non trivial constant values
//~| ERROR generic parameters must not be used inside of non trivial constant values

fn main() {}