diff options
Diffstat (limited to 'tests/ui/consts/refs_check_const_value_eq-issue-88876.rs')
-rw-r--r-- | tests/ui/consts/refs_check_const_value_eq-issue-88876.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs b/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs new file mode 100644 index 000000000..6ce9da436 --- /dev/null +++ b/tests/ui/consts/refs_check_const_value_eq-issue-88876.rs @@ -0,0 +1,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> {}; +} |