1 error[E0277]: `a::Inner<T>` doesn't implement `Debug`
2 --> $DIR/derive-macro-missing-bounds.rs:12:21
5 | ----- in this derive macro expansion
6 LL | struct Outer<T>(Inner<T>);
7 | ^^^^^^^^ `a::Inner<T>` cannot be formatted using `{:?}`
9 = help: the trait `Debug` is not implemented for `a::Inner<T>`
10 = note: add `#[derive(Debug)]` to `a::Inner<T>` or manually `impl Debug for a::Inner<T>`
11 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
12 help: consider annotating `a::Inner<T>` with `#[derive(Debug)]`
16 help: consider introducing a `where` bound, but there might be an alternative better way to express this requirement
18 LL | struct Outer<T>(Inner<T>) where a::Inner<T>: Debug;
19 | ++++++++++++++++++++++++
21 error[E0277]: the trait bound `T: c::Trait` is not satisfied
22 --> $DIR/derive-macro-missing-bounds.rs:41:21
25 | ----- in this derive macro expansion
26 LL | struct Outer<T>(Inner<T>);
27 | ^^^^^^^^ the trait `c::Trait` is not implemented for `T`
29 note: required because of the requirements on the impl of `Debug` for `c::Inner<T>`
30 --> $DIR/derive-macro-missing-bounds.rs:34:28
32 LL | impl<T: Debug + Trait> Debug for Inner<T> {
34 = note: 1 redundant requirement hidden
35 = note: required because of the requirements on the impl of `Debug` for `&c::Inner<T>`
36 = note: required for the cast to the object type `dyn Debug`
37 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
38 help: consider restricting type parameter `T`
40 LL | struct Outer<T: c::Trait>(Inner<T>);
43 error[E0277]: the trait bound `T: d::Trait` is not satisfied
44 --> $DIR/derive-macro-missing-bounds.rs:56:21
47 | ----- in this derive macro expansion
48 LL | struct Outer<T>(Inner<T>);
49 | ^^^^^^^^ the trait `d::Trait` is not implemented for `T`
51 note: required because of the requirements on the impl of `Debug` for `d::Inner<T>`
52 --> $DIR/derive-macro-missing-bounds.rs:49:13
54 LL | impl<T> Debug for Inner<T> where T: Debug, T: Trait {
56 = note: 1 redundant requirement hidden
57 = note: required because of the requirements on the impl of `Debug` for `&d::Inner<T>`
58 = note: required for the cast to the object type `dyn Debug`
59 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
60 help: consider restricting type parameter `T`
62 LL | struct Outer<T: d::Trait>(Inner<T>);
65 error[E0277]: the trait bound `T: e::Trait` is not satisfied
66 --> $DIR/derive-macro-missing-bounds.rs:71:21
69 | ----- in this derive macro expansion
70 LL | struct Outer<T>(Inner<T>);
71 | ^^^^^^^^ the trait `e::Trait` is not implemented for `T`
73 note: required because of the requirements on the impl of `Debug` for `e::Inner<T>`
74 --> $DIR/derive-macro-missing-bounds.rs:64:13
76 LL | impl<T> Debug for Inner<T> where T: Debug + Trait {
78 = note: 1 redundant requirement hidden
79 = note: required because of the requirements on the impl of `Debug` for `&e::Inner<T>`
80 = note: required for the cast to the object type `dyn Debug`
81 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
82 help: consider restricting type parameter `T`
84 LL | struct Outer<T: e::Trait>(Inner<T>);
87 error[E0277]: the trait bound `T: f::Trait` is not satisfied
88 --> $DIR/derive-macro-missing-bounds.rs:86:21
91 | ----- in this derive macro expansion
92 LL | struct Outer<T>(Inner<T>);
93 | ^^^^^^^^ the trait `f::Trait` is not implemented for `T`
95 note: required because of the requirements on the impl of `Debug` for `f::Inner<T>`
96 --> $DIR/derive-macro-missing-bounds.rs:79:20
98 LL | impl<T: Debug> Debug for Inner<T> where T: Trait {
100 = note: 1 redundant requirement hidden
101 = note: required because of the requirements on the impl of `Debug` for `&f::Inner<T>`
102 = note: required for the cast to the object type `dyn Debug`
103 = note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
104 help: consider restricting type parameter `T`
106 LL | struct Outer<T: f::Trait>(Inner<T>);
109 error: aborting due to 5 previous errors
111 For more information about this error, try `rustc --explain E0277`.