]>
git.proxmox.com Git - rustc.git/blob - tests/ui/const-generics/issues/issue-105821.rs
3 #![allow(incomplete_features)]
4 #![feature(adt_const_params, generic_const_exprs)]
7 const fn catone
<const M
: usize>(_a
: &[u8; M
]) -> [u8; M
+ 1]
14 struct Catter
<const A
: &'
static [u8]>;
15 impl<const A
: &'
static [u8]> Catter
<A
>
19 const ZEROS
: &'
static [u8; A
.len()] = &[0_u8; A
.len()];
20 const R
: &'
static [u8] = &catone(Self::ZEROS
);