1 warning: the feature `const_generics` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-61336.rs:2:27
4 LL | #![cfg_attr(full, feature(const_generics))]
7 = note: `#[warn(incomplete_features)]` on by default
8 = note: see issue #44580 <https://github.com/rust-lang/rust/issues/44580> for more information
10 error[E0277]: the trait bound `T: Copy` is not satisfied
11 --> $DIR/issue-61336.rs:10:5
14 | ^^^^^^ the trait `Copy` is not implemented for `T`
16 = note: the `Copy` trait is required because the repeated element will be copied
17 help: consider restricting type parameter `T`
19 LL | fn g<T: Copy, const N: usize>(x: T) -> [T; N] {
22 error: aborting due to previous error; 1 warning emitted
24 For more information about this error, try `rustc --explain E0277`.