blob: 7ee0394ba14ce956ed28b58c277c16ab79605df4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// revisions: full min
#![cfg_attr(full, allow(incomplete_features))]
#![cfg_attr(full, feature(const_generics))]
fn foo<const A: usize, const B: usize>(bar: [usize; A + B]) {}
//[min]~^ ERROR generic parameters may not be used in const operations
//[min]~| ERROR generic parameters may not be used in const operations
//[full]~^^^ ERROR constant expression depends on a generic parameter
fn main() {}
|