2020-12-27 02:30:06 +00:00
|
|
|
error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
|
2022-04-11 16:38:48 +00:00
|
|
|
--> $DIR/repeat_empty_ok.rs:8:20
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
|
|
|
LL | let headers = [Header{value: &[]}; 128];
|
2022-04-11 16:38:48 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Header<'_>`
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
2022-04-28 09:40:42 +00:00
|
|
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy)]
|
|
|
|
|
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
|
2022-04-11 16:38:48 +00:00
|
|
|
--> $DIR/repeat_empty_ok.rs:13:20
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
|
|
|
LL | let headers = [Header{value: &[0]}; 128];
|
2022-04-11 16:38:48 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Header<'_>`
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
2022-04-28 09:40:42 +00:00
|
|
|
= note: the `Copy` trait is required because this value will be copied for each element of the array
|
2022-03-31 14:58:45 +00:00
|
|
|
help: consider annotating `Header<'_>` with `#[derive(Copy)]`
|
|
|
|
|
|
|
|
|
LL | #[derive(Copy)]
|
|
|
|
|
|
2020-12-27 02:30:06 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|