about summary refs log tree commit diff
path: root/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs
blob: 33b6b7f52ca107941715d0b9d660cfce6d9b9c91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass

#![allow(incomplete_features)]
#![feature(adt_const_params, unsized_const_params)]

struct FooConst<const ARRAY: &'static [&'static str]> {}

const FOO_ARR: &[&'static str; 2] = &["Hello", "Friend"];

fn main() {
    let _ = FooConst::<FOO_ARR> {};
}