mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
12 lines
351 B
Rust
12 lines
351 B
Rust
// revisions: full min
|
|
#![cfg_attr(full, feature(adt_const_params, generic_arg_infer))]
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
|
|
|
fn foo<const N: usize, const A: [u8; N]>() {}
|
|
//~^ ERROR the type of const parameters must not
|
|
//[min]~| ERROR `[u8; _]` is forbidden as the type of a const generic parameter
|
|
|
|
fn main() {
|
|
foo::<_, { [1] }>();
|
|
}
|