2 #![cfg_attr(full, feature(const_generics))] //[full]~WARN the feature `const_generics` is incomplete
4 fn f<T: Copy, const N: usize>(x: T) -> [T; N] {
8 fn g<T, const N: usize>(x: T) -> [T; N] {
10 //~^ ERROR the trait bound `T: Copy` is not satisfied
14 let x: [u32; 5] = f::<u32, 5>(3);
15 assert_eq!(x, [3u32; 5]);