mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
7 lines
238 B
Rust
7 lines
238 B
Rust
struct Foo<const N: [u8]>;
|
|
//~^ ERROR: `[u8]` is forbidden as the type of a const generic parameter
|
|
//~| HELP: add `#![feature(adt_const_params)]` to the crate
|
|
//~| HELP: add `#![feature(unsized_const_params)]` to the crate
|
|
|
|
fn main() {}
|