about summary refs log tree commit diff
path: root/tests/ui/error-codes
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/error-codes
parent4087deaccd8bceb458c9610d29744d5f3504c5c0 (diff)
downloadrust-5b40aa5eb484b31c9a82c1b1a0f414840477b9ea.tar.gz
rust-5b40aa5eb484b31c9a82c1b1a0f414840477b9ea.zip
Tweak output for 'add line' suggestion
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0277-3.stderr3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0277-3.stderr b/tests/ui/error-codes/E0277-3.stderr
index 0127e1ccc81..0d4782935df 100644
--- a/tests/ui/error-codes/E0277-3.stderr
+++ b/tests/ui/error-codes/E0277-3.stderr
@@ -14,7 +14,8 @@ LL | fn foo<T: PartialEq>(_: T) {}
    |           ^^^^^^^^^ required by this bound in `foo`
 help: consider annotating `S` with `#[derive(PartialEq)]`
    |
-LL | #[derive(PartialEq)]
+LL + #[derive(PartialEq)]
+LL | struct S;
    |
 
 error: aborting due to previous error