Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
consts
/
refs_check_const_value_eq-issue-88876.rs
blob: 6ce9da436680047d2632c3274997e5eeda4666c1 [
file
] [
log
] [
blame
]
// check-pass
#![
allow
(
incomplete_features
)]
#![
feature
(
adt_const_params
)]
struct
FooConst
<
const
ARRAY
:
&
'static [&'
static
str
]>
{}
const
FOO_ARR
:
&[&
'
static
str
;
2
]
=
&[
"Hello"
,
"Friend"
];
fn
main
()
{
let
_
=
FooConst
::<
FOO_ARR
>
{};
}