fork/rust

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

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

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