LL | let y = x.test();
| ^^^^ method cannot be called on `Foo<Enum, CloneEnum>` due to unsatisfied trait bounds
|
- = note: the following trait bounds were not satisfied:
- `Enum: Clone`
- `Enum: Default`
- `CloneEnum: Default`
+note: the following trait bounds were not satisfied:
+ `CloneEnum: Default`
+ `Enum: Clone`
+ `Enum: Default`
+ --> $DIR/derive-trait-for-method-call.rs:20:9
+ |
+LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> {
+ | ^^^^^ ^^^^^^^ ^^^^^^^ ---------
+ | | | |
+ | | | unsatisfied trait bound introduced here
+ | | unsatisfied trait bound introduced here
+ | unsatisfied trait bound introduced here
note: the trait `Default` must be implemented
--> $SRC_DIR/core/src/default.rs:LL:COL
help: consider annotating `Enum` with `#[derive(Clone)]`
LL | let y = x.test();
| ^^^^ method cannot be called on `Foo<Struct, CloneStruct>` due to unsatisfied trait bounds
|
- = note: the following trait bounds were not satisfied:
- `Struct: Clone`
- `Struct: Default`
- `CloneStruct: Default`
+note: the following trait bounds were not satisfied:
+ `CloneStruct: Default`
+ `Struct: Clone`
+ `Struct: Default`
+ --> $DIR/derive-trait-for-method-call.rs:20:9
+ |
+LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> {
+ | ^^^^^ ^^^^^^^ ^^^^^^^ ---------
+ | | | |
+ | | | unsatisfied trait bound introduced here
+ | | unsatisfied trait bound introduced here
+ | unsatisfied trait bound introduced here
help: consider annotating `CloneStruct` with `#[derive(Default)]`
|
LL | #[derive(Default)]
|
= note: doesn't satisfy `Vec<Enum>: Clone`
|
- = note: the following trait bounds were not satisfied:
- `Vec<Enum>: Clone`
- `Instant: Default`
+note: the following trait bounds were not satisfied:
+ `Instant: Default`
+ `Vec<Enum>: Clone`
+ --> $DIR/derive-trait-for-method-call.rs:20:9
+ |
+LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> {
+ | ^^^^^ ^^^^^^^ ---------
+ | | |
+ | | unsatisfied trait bound introduced here
+ | unsatisfied trait bound introduced here
error: aborting due to 3 previous errors