mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 11:44:28 +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() {}
|