Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
feature-gates
/
feature-gate-unsized-const-params.rs
blob: d088d382377cff0aac5cef3b41bb6f15b6d37221 [
file
] [
log
] [
blame
]
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
()
{}