summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/derive-clone-for-eq.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/derive-clone-for-eq.stderr')
-rw-r--r--tests/ui/suggestions/derive-clone-for-eq.stderr6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/suggestions/derive-clone-for-eq.stderr b/tests/ui/suggestions/derive-clone-for-eq.stderr
index 9d843c251..680890e88 100644
--- a/tests/ui/suggestions/derive-clone-for-eq.stderr
+++ b/tests/ui/suggestions/derive-clone-for-eq.stderr
@@ -1,11 +1,11 @@
error[E0277]: the trait bound `T: Clone` is not satisfied
- --> $DIR/derive-clone-for-eq.rs:6:17
+ --> $DIR/derive-clone-for-eq.rs:4:17
|
LL | #[derive(Clone, Eq)]
| ^^ the trait `Clone` is not implemented for `T`
|
note: required for `Struct<T>` to implement `PartialEq`
- --> $DIR/derive-clone-for-eq.rs:9:19
+ --> $DIR/derive-clone-for-eq.rs:7:19
|
LL | impl<T: Clone, U> PartialEq<U> for Struct<T>
| ----- ^^^^^^^^^^^^ ^^^^^^^^^
@@ -19,6 +19,6 @@ help: consider restricting type parameter `T`
LL | pub struct Struct<T: std::clone::Clone>(T);
| +++++++++++++++++++
-error: aborting due to previous error
+error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0277`.