]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied |
04454e1e | 2 | --> $DIR/repeat_empty_ok.rs:8:20 |
5869c6ff XL |
3 | | |
4 | LL | let headers = [Header{value: &[]}; 128]; | |
04454e1e FG |
5 | | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Header<'_>` |
6 | | | |
7 | = note: the `Copy` trait is required because this value will be copied for each element of the array | |
8 | help: consider annotating `Header<'_>` with `#[derive(Copy)]` | |
9 | | | |
10 | LL | #[derive(Copy)] | |
5869c6ff | 11 | | |
5869c6ff XL |
12 | |
13 | error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied | |
04454e1e | 14 | --> $DIR/repeat_empty_ok.rs:13:20 |
5869c6ff XL |
15 | | |
16 | LL | let headers = [Header{value: &[0]}; 128]; | |
04454e1e FG |
17 | | ^^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `Header<'_>` |
18 | | | |
19 | = note: the `Copy` trait is required because this value will be copied for each element of the array | |
20 | help: consider annotating `Header<'_>` with `#[derive(Copy)]` | |
21 | | | |
22 | LL | #[derive(Copy)] | |
5869c6ff | 23 | | |
5869c6ff XL |
24 | |
25 | error: aborting due to 2 previous errors | |
26 | ||
27 | For more information about this error, try `rustc --explain E0277`. |