]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui/derives/issue-91492.stderr
Conserve cause of `ImplDerivedObligation` in E0599
[rust.git] / tests / ui / derives / issue-91492.stderr
index fbd48336d9126532ee6eb55e115deb088bd22cba..cee30ac50a6a2ed1335a379ae6aaefe29c362d39 100644 (file)
@@ -42,8 +42,13 @@ LL | struct Object<T, A>(T, A);
 LL |     foo.use_clone();
    |         ^^^^^^^^^ method cannot be called on `Object<NoDerives, SomeDerives>` due to unsatisfied trait bounds
    |
-   = note: the following trait bounds were not satisfied:
-           `NoDerives: Clone`
+note: trait bound `NoDerives: Clone` was not satisfied
+  --> $DIR/issue-91492.rs:18:9
+   |
+LL | impl<T: Clone, A: Default> Object<T, A> {
+   |         ^^^^^              ------------
+   |         |
+   |         unsatisfied trait bound introduced here
 help: consider annotating `NoDerives` with `#[derive(Clone)]`
    |
 LL | #[derive(Clone)]