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