about summary refs log tree commit diff
path: root/tests/ui/methods
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2023-01-11 03:07:14 +0000
committerEsteban Küber <esteban@kuber.com.ar>2023-01-11 19:31:33 +0000
commitfb5d2153473b8a61e8697d05da10fc37d849fb80 (patch)
treec01e0b1e0301016f880cd56689b33e48f4c5e83a /tests/ui/methods
parentb22c152958eade17a71d899b29a2d39bcc77aa48 (diff)
downloadrust-fb5d2153473b8a61e8697d05da10fc37d849fb80.tar.gz
rust-fb5d2153473b8a61e8697d05da10fc37d849fb80.zip
Conserve cause of `ImplDerivedObligation` in E0599
CC #86377.
Diffstat (limited to 'tests/ui/methods')
-rw-r--r--tests/ui/methods/method-not-found-generic-arg-elision.stderr17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/ui/methods/method-not-found-generic-arg-elision.stderr b/tests/ui/methods/method-not-found-generic-arg-elision.stderr
index 8846efba871..6ec369644a0 100644
--- a/tests/ui/methods/method-not-found-generic-arg-elision.stderr
+++ b/tests/ui/methods/method-not-found-generic-arg-elision.stderr
@@ -88,9 +88,20 @@ LL | struct Struct<T> {
 LL |     s.method();
    |       ^^^^^^ method cannot be called on `Struct<f64>` due to unsatisfied trait bounds
    |
-   = note: the following trait bounds were not satisfied:
-           `f64: Eq`
-           `f64: Ord`
+note: trait bound `f64: Eq` was not satisfied
+  --> $DIR/method-not-found-generic-arg-elision.rs:74:36
+   |
+LL | impl<T: Clone + Copy + PartialEq + Eq + PartialOrd + Ord> Struct<T> {
+   |                                    ^^                     ---------
+   |                                    |
+   |                                    unsatisfied trait bound introduced here
+note: trait bound `f64: Ord` was not satisfied
+  --> $DIR/method-not-found-generic-arg-elision.rs:74:54
+   |
+LL | impl<T: Clone + Copy + PartialEq + Eq + PartialOrd + Ord> Struct<T> {
+   |                                                      ^^^  ---------
+   |                                                      |
+   |                                                      unsatisfied trait bound introduced here
 
 error: aborting due to 9 previous errors