fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
529 B15 linesraw
1error[E0277]: the trait bound `T: Copy` is not satisfied
2  --> $DIR/issue-61336.rs:6:6
3   |
4LL |     [x; N]
5   |      ^ the trait `Copy` is not implemented for `T`
6   |
7   = note: the `Copy` trait is required because this value will be copied for each element of the array
8help: consider restricting type parameter `T`
9   |
10LL | fn g<T: std::marker::Copy, const N: usize>(x: T) -> [T; N] {
11   |       +++++++++++++++++++
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.