about summary refs log tree commit diff
path: root/tests/ui/traits/inductive-overflow
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-03-18 02:18:39 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-04-12 22:50:10 +0000
commit5b40aa5eb484b31c9a82c1b1a0f414840477b9ea (patch)
treea83099e5b1b5889ca24ebf6c3d56b65c508a6208 /tests/ui/traits/inductive-overflow
parent4087deaccd8bceb458c9610d29744d5f3504c5c0 (diff)
downloadrust-5b40aa5eb484b31c9a82c1b1a0f414840477b9ea.tar.gz
rust-5b40aa5eb484b31c9a82c1b1a0f414840477b9ea.zip
Tweak output for 'add line' suggestion
Diffstat (limited to 'tests/ui/traits/inductive-overflow')
-rw-r--r--tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr b/tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
index dc967d51298..e723c7c5181 100644
--- a/tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
+++ b/tests/ui/traits/inductive-overflow/supertrait-auto-trait.stderr
@@ -26,7 +26,8 @@ LL | fn copy<T: Magic>(x: T) -> (T, T) { (x, x) }
    |            ^^^^^ required by this bound in `copy`
 help: consider annotating `NoClone` with `#[derive(Copy)]`
    |
-LL | #[derive(Copy)]
+LL + #[derive(Copy)]
+LL | struct NoClone;
    |
 
 error: aborting due to 2 previous errors