diff options
author | Esteban Küber <esteban@kuber.com.ar> | 2023-03-18 02:18:39 +0000 |
---|---|---|
committer | Esteban Küber <esteban@kuber.com.ar> | 2023-04-12 22:50:10 +0000 |
commit | 5b40aa5eb484b31c9a82c1b1a0f414840477b9ea (patch) | |
tree | a83099e5b1b5889ca24ebf6c3d56b65c508a6208 /tests/ui/wf | |
parent | 4087deaccd8bceb458c9610d29744d5f3504c5c0 (diff) |
Tweak output for 'add line' suggestion
Diffstat (limited to 'tests/ui/wf')
-rw-r--r-- | tests/ui/wf/wf-const-type.stderr | 3 | ||||
-rw-r--r-- | tests/ui/wf/wf-static-type.stderr | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/ui/wf/wf-const-type.stderr b/tests/ui/wf/wf-const-type.stderr index 85938364ede..617969720a6 100644 --- a/tests/ui/wf/wf-const-type.stderr +++ b/tests/ui/wf/wf-const-type.stderr @@ -12,7 +12,8 @@ LL | struct IsCopy<T:Copy> { t: T } | ^^^^ required by this bound in `IsCopy` help: consider annotating `NotCopy` with `#[derive(Copy)]` | -LL | #[derive(Copy)] +LL + #[derive(Copy)] +LL | struct NotCopy; | error: aborting due to previous error diff --git a/tests/ui/wf/wf-static-type.stderr b/tests/ui/wf/wf-static-type.stderr index 16c6124b652..bb5a57834eb 100644 --- a/tests/ui/wf/wf-static-type.stderr +++ b/tests/ui/wf/wf-static-type.stderr @@ -12,7 +12,8 @@ LL | struct IsCopy<T:Copy> { t: T } | ^^^^ required by this bound in `IsCopy` help: consider annotating `NotCopy` with `#[derive(Copy)]` | -LL | #[derive(Copy)] +LL + #[derive(Copy)] +LL | struct NotCopy; | error: aborting due to previous error |