]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/issues/issue-61336-1.rs
165d3e1c2e60169af4f1b669ae0c63a6646005f4
1 #![feature(const_generics)]
2 //~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
6 fn f
<T
: Copy
, const N
: usize>(x
: T
) -> [T
; N
] {
11 let x
: [u32; 5] = f
::<u32, 5>(3);
12 assert_eq
!(x
, [3u32; 5]);