]> git.proxmox.com Git - rustc.git/blame - src/test/ui/array-slice-vec/repeat_empty_ok.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / array-slice-vec / repeat_empty_ok.stderr
CommitLineData
5869c6ff 1error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
04454e1e 2 --> $DIR/repeat_empty_ok.rs:8:20
5869c6ff
XL
3 |
4LL | 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
8help: consider annotating `Header<'_>` with `#[derive(Copy)]`
9 |
10LL | #[derive(Copy)]
5869c6ff 11 |
5869c6ff
XL
12
13error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied
04454e1e 14 --> $DIR/repeat_empty_ok.rs:13:20
5869c6ff
XL
15 |
16LL | 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
20help: consider annotating `Header<'_>` with `#[derive(Copy)]`
21 |
22LL | #[derive(Copy)]
5869c6ff 23 |
5869c6ff
XL
24
25error: aborting due to 2 previous errors
26
27For more information about this error, try `rustc --explain E0277`.