]> git.lizzy.rs Git - rust.git/blob - tests/ui/array-slice-vec/repeat_empty_ok.stderr
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / array-slice-vec / repeat_empty_ok.stderr
1 error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
2   --> $DIR/repeat_empty_ok.rs:8:20
3    |
4 LL |     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
8 help: consider annotating `Header<'_>` with `#[derive(Copy)]`
9    |
10 LL | #[derive(Copy)]
11    |
12
13 error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
14   --> $DIR/repeat_empty_ok.rs:13:20
15    |
16 LL |     let headers = [Header{value: &[0]}; 128];
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)]
23    |
24
25 error: aborting due to 2 previous errors
26
27 For more information about this error, try `rustc --explain E0277`.