diff options
author | Esteban Küber <esteban@kuber.com.ar> | 2023-01-11 04:11:06 +0000 |
---|---|---|
committer | Esteban Küber <esteban@kuber.com.ar> | 2023-01-11 19:31:34 +0000 |
commit | 317adda649763de4c15692da327c216f05106a94 (patch) | |
tree | 4b8639e9a6c7d46985714be980b01db56f2254cc /tests/ui/suggestions/derive-trait-for-method-call.stderr | |
parent | fb5d2153473b8a61e8697d05da10fc37d849fb80 (diff) |
Tweak output
Diffstat (limited to 'tests/ui/suggestions/derive-trait-for-method-call.stderr')
-rw-r--r-- | tests/ui/suggestions/derive-trait-for-method-call.stderr | 66 |
1 files changed, 22 insertions, 44 deletions
diff --git a/tests/ui/suggestions/derive-trait-for-method-call.stderr b/tests/ui/suggestions/derive-trait-for-method-call.stderr index 8d5957bd719..924b26a8c75 100644 --- a/tests/ui/suggestions/derive-trait-for-method-call.stderr +++ b/tests/ui/suggestions/derive-trait-for-method-call.stderr @@ -16,27 +16,18 @@ LL | struct Foo<X, Y> (X, Y); LL | let y = x.test(); | ^^^^ method cannot be called on `Foo<Enum, CloneEnum>` due to unsatisfied trait bounds | -note: trait bound `Enum: Clone` was not satisfied +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: trait bound `Enum: Default` was not satisfied - --> $DIR/derive-trait-for-method-call.rs:20:17 - | -LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> { - | ^^^^^^^ --------- - | | - | unsatisfied trait bound introduced here -note: trait bound `CloneEnum: Default` was not satisfied - --> $DIR/derive-trait-for-method-call.rs:20:40 - | -LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> { - | ^^^^^^^ --------- - | | - | 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)]` @@ -62,27 +53,18 @@ LL | struct Foo<X, Y> (X, Y); LL | let y = x.test(); | ^^^^ method cannot be called on `Foo<Struct, CloneStruct>` due to unsatisfied trait bounds | -note: trait bound `Struct: Clone` was not satisfied +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 -note: trait bound `Struct: Default` was not satisfied - --> $DIR/derive-trait-for-method-call.rs:20:17 - | -LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> { - | ^^^^^^^ --------- - | | - | unsatisfied trait bound introduced here -note: trait bound `CloneStruct: Default` was not satisfied - --> $DIR/derive-trait-for-method-call.rs:20:40 - | -LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> { - | ^^^^^^^ --------- - | | - | unsatisfied trait bound introduced here help: consider annotating `CloneStruct` with `#[derive(Default)]` | LL | #[derive(Default)] @@ -107,20 +89,16 @@ LL | let y = x.test(); | = note: doesn't satisfy `Vec<Enum>: Clone` | -note: trait bound `Vec<Enum>: Clone` was not satisfied +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 -note: trait bound `Instant: Default` was not satisfied - --> $DIR/derive-trait-for-method-call.rs:20:40 - | -LL | impl<X: Clone + Default + , Y: Clone + Default> Foo<X, Y> { - | ^^^^^^^ --------- - | | - | unsatisfied trait bound introduced here error: aborting due to 3 previous errors |