diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-11 03:07:14 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-11 19:31:33 +0000 |
| commit | fb5d2153473b8a61e8697d05da10fc37d849fb80 (patch) | |
| tree | c01e0b1e0301016f880cd56689b33e48f4c5e83a /tests/ui/methods | |
| parent | b22c152958eade17a71d899b29a2d39bcc77aa48 (diff) | |
| download | rust-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.stderr | 17 |
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 |
