@@ -31,10 +31,10 @@ LL | impl<T: Debug + Trait> Debug for Inner<T> {
31
31
= note: required because of the requirements on the impl of `Debug` for `&c::Inner<T>`
32
32
= note: required for the cast to the object type `dyn Debug`
33
33
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
34
- help: consider further restricting this bound
34
+ help: consider restricting type parameter `T`
35
35
|
36
- LL | #[derive(Debug + c::Trait)]
37
- | ++++++++++
36
+ LL | struct Outer<T: c::Trait>(Inner<T>);
37
+ | ++++++++++
38
38
39
39
error[E0277]: the trait bound `T: d::Trait` is not satisfied
40
40
--> $DIR/derive-macro-missing-bounds.rs:56:21
@@ -53,10 +53,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug, T: Trait {
53
53
= note: required because of the requirements on the impl of `Debug` for `&d::Inner<T>`
54
54
= note: required for the cast to the object type `dyn Debug`
55
55
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
56
- help: consider further restricting this bound
56
+ help: consider restricting type parameter `T`
57
57
|
58
- LL | #[derive(Debug + d::Trait)]
59
- | ++++++++++
58
+ LL | struct Outer<T: d::Trait>(Inner<T>);
59
+ | ++++++++++
60
60
61
61
error[E0277]: the trait bound `T: e::Trait` is not satisfied
62
62
--> $DIR/derive-macro-missing-bounds.rs:71:21
@@ -75,10 +75,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug + Trait {
75
75
= note: required because of the requirements on the impl of `Debug` for `&e::Inner<T>`
76
76
= note: required for the cast to the object type `dyn Debug`
77
77
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
78
- help: consider further restricting this bound
78
+ help: consider restricting type parameter `T`
79
79
|
80
- LL | #[derive(Debug + e::Trait)]
81
- | ++++++++++
80
+ LL | struct Outer<T: e::Trait>(Inner<T>);
81
+ | ++++++++++
82
82
83
83
error[E0277]: the trait bound `T: f::Trait` is not satisfied
84
84
--> $DIR/derive-macro-missing-bounds.rs:86:21
@@ -97,10 +97,10 @@ LL | impl<T: Debug> Debug for Inner<T> where T: Trait {
97
97
= note: required because of the requirements on the impl of `Debug` for `&f::Inner<T>`
98
98
= note: required for the cast to the object type `dyn Debug`
99
99
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
100
- help: consider further restricting this bound
100
+ help: consider restricting type parameter `T`
101
101
|
102
- LL | #[derive(Debug + f::Trait)]
103
- | ++++++++++
102
+ LL | struct Outer<T: f::Trait>(Inner<T>);
103
+ | ++++++++++
104
104
105
105
error: aborting due to 5 previous errors
106
106
0 commit comments