1 error[E0277]: the trait bound `T: Copy` is not satisfied
2 --> $DIR/issue-61336.rs:10:5
5 | ^^^^^^ the trait `Copy` is not implemented for `T`
7 = note: the `Copy` trait is required because the repeated element will be copied
8 help: consider restricting type parameter `T`
10 LL | fn g<T: Copy, const N: usize>(x: T) -> [T; N] {
13 error: aborting due to previous error
15 For more information about this error, try `rustc --explain E0277`.