summaryrefslogtreecommitdiffstats
path: root/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs
blob: 6ce9da436680047d2632c3274997e5eeda4666c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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> {};
}