@@ -31,10 +31,10 @@ LL | impl<T: Debug + Trait> Debug for Inner<T> {
3131 = note: required because of the requirements on the impl of `Debug` for `&c::Inner<T>`
3232 = note: required for the cast to the object type `dyn Debug`
3333 = 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`
3535 |
36- LL | #[derive(Debug + c::Trait)]
37- | ++++++++++
36+ LL | struct Outer<T: c::Trait>(Inner<T>);
37+ | ++++++++++
3838
3939error[E0277]: the trait bound `T: d::Trait` is not satisfied
4040 --> $DIR/derive-macro-missing-bounds.rs:56:21
@@ -53,10 +53,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug, T: Trait {
5353 = note: required because of the requirements on the impl of `Debug` for `&d::Inner<T>`
5454 = note: required for the cast to the object type `dyn Debug`
5555 = 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`
5757 |
58- LL | #[derive(Debug + d::Trait)]
59- | ++++++++++
58+ LL | struct Outer<T: d::Trait>(Inner<T>);
59+ | ++++++++++
6060
6161error[E0277]: the trait bound `T: e::Trait` is not satisfied
6262 --> $DIR/derive-macro-missing-bounds.rs:71:21
@@ -75,10 +75,10 @@ LL | impl<T> Debug for Inner<T> where T: Debug + Trait {
7575 = note: required because of the requirements on the impl of `Debug` for `&e::Inner<T>`
7676 = note: required for the cast to the object type `dyn Debug`
7777 = 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`
7979 |
80- LL | #[derive(Debug + e::Trait)]
81- | ++++++++++
80+ LL | struct Outer<T: e::Trait>(Inner<T>);
81+ | ++++++++++
8282
8383error[E0277]: the trait bound `T: f::Trait` is not satisfied
8484 --> $DIR/derive-macro-missing-bounds.rs:86:21
@@ -97,10 +97,10 @@ LL | impl<T: Debug> Debug for Inner<T> where T: Trait {
9797 = note: required because of the requirements on the impl of `Debug` for `&f::Inner<T>`
9898 = note: required for the cast to the object type `dyn Debug`
9999 = 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`
101101 |
102- LL | #[derive(Debug + f::Trait)]
103- | ++++++++++
102+ LL | struct Outer<T: f::Trait>(Inner<T>);
103+ | ++++++++++
104104
105105error: aborting due to 5 previous errors
106106
0 commit comments