Sign in
fuchsia
/
third_party
/
rust
/
7bade6ef730cff83f3591479a98916920f66decd
/
.
/
src
/
test
/
ui
/
const-generics
/
min_const_generics
/
static-reference-array-const-param.rs
blob: 0ef17109bed40333528f57bc90f1cbb6181a53b5 [
file
] [
log
] [
blame
]
#![
feature
(
min_const_generics
)]
fn
a
<
const
X
:
&
'
static
[
u32
]>()
{}
//~^ ERROR `&'static [u32]` is forbidden as the type of a const generic parameter
fn
main
()
{
a
::<{&[]}>();
}