diff options
| author | bors <bors@rust-lang.org> | 2023-04-13 07:02:53 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-04-13 07:02:53 +0000 |
| commit | d37e2f74afd131cda7b08520d37426bfbb622b5c (patch) | |
| tree | bb0098aae948e2e63dc7631385c80806ab7dc13d /tests/ui/array-slice-vec | |
| parent | a29dada983fa8d44f789d3a64408b7ad4f4c3487 (diff) | |
| parent | 9fadcc143a49a124fa1d0d3261593defb986a987 (diff) | |
| download | rust-d37e2f74afd131cda7b08520d37426bfbb622b5c.tar.gz rust-d37e2f74afd131cda7b08520d37426bfbb622b5c.zip | |
Auto merge of #109786 - estebank:tweak-add-line-sugg, r=compiler-errors
Tweak output for 'add line' suggestion Closes #108174
Diffstat (limited to 'tests/ui/array-slice-vec')
| -rw-r--r-- | tests/ui/array-slice-vec/repeat_empty_ok.stderr | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/array-slice-vec/repeat_empty_ok.stderr b/tests/ui/array-slice-vec/repeat_empty_ok.stderr index 724bdcd920a..e8bac04ac45 100644 --- a/tests/ui/array-slice-vec/repeat_empty_ok.stderr +++ b/tests/ui/array-slice-vec/repeat_empty_ok.stderr @@ -7,7 +7,8 @@ LL | let headers = [Header{value: &[]}; 128]; = note: the `Copy` trait is required because this value will be copied for each element of the array help: consider annotating `Header<'_>` with `#[derive(Copy)]` | -LL | #[derive(Copy)] +LL + #[derive(Copy)] +LL | pub struct Header<'a> { | error[E0277]: the trait bound `Header<'_>: Copy` is not satisfied @@ -19,7 +20,8 @@ LL | let headers = [Header{value: &[0]}; 128]; = note: the `Copy` trait is required because this value will be copied for each element of the array help: consider annotating `Header<'_>` with `#[derive(Copy)]` | -LL | #[derive(Copy)] +LL + #[derive(Copy)] +LL | pub struct Header<'a> { | error: aborting due to 2 previous errors |
