2021-11-02 23:19:06 -05:00
|
|
|
error[E0277]: `a::Inner<T>` doesn't implement `Debug`
|
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:12:21
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct Outer<T>(Inner<T>);
|
|
|
|
| ^^^^^^^^ `a::Inner<T>` cannot be formatted using `{:?}`
|
|
|
|
|
|
|
|
|
= help: the trait `Debug` is not implemented for `a::Inner<T>`
|
|
|
|
= note: add `#[derive(Debug)]` to `a::Inner<T>` or manually `impl Debug for a::Inner<T>`
|
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2022-03-31 09:58:45 -05:00
|
|
|
help: consider annotating `a::Inner<T>` with `#[derive(Debug)]`
|
|
|
|
|
|
2023-03-17 21:18:39 -05:00
|
|
|
LL + #[derive(Debug)]
|
|
|
|
LL | struct Inner<T>(T);
|
2022-03-31 09:58:45 -05:00
|
|
|
|
|
2022-06-05 19:37:45 -05:00
|
|
|
help: consider introducing a `where` clause, but there might be an alternative better way to express this requirement
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
|
|
|
LL | struct Outer<T>(Inner<T>) where a::Inner<T>: Debug;
|
|
|
|
| ++++++++++++++++++++++++
|
|
|
|
|
|
|
|
error[E0277]: the trait bound `T: c::Trait` is not satisfied
|
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:41:21
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct Outer<T>(Inner<T>);
|
|
|
|
| ^^^^^^^^ the trait `c::Trait` is not implemented for `T`
|
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `c::Inner<T>` to implement `Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:34:28
|
|
|
|
|
|
|
|
|
LL | impl<T: Debug + Trait> Debug for Inner<T> {
|
2023-01-10 21:21:11 -06:00
|
|
|
| ----- ^^^^^ ^^^^^^^^
|
|
|
|
| |
|
|
|
|
| unsatisfied trait bound introduced here
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: 1 redundant requirement hidden
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&c::Inner<T>` to implement `Debug`
|
2023-05-10 21:10:56 -05:00
|
|
|
= note: required for the cast from `&&c::Inner<T>` to `&dyn Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-11-17 17:35:38 -06:00
|
|
|
help: consider restricting type parameter `T`
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
2021-11-17 17:35:38 -06:00
|
|
|
LL | struct Outer<T: c::Trait>(Inner<T>);
|
|
|
|
| ++++++++++
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `T: d::Trait` is not satisfied
|
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:56:21
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct Outer<T>(Inner<T>);
|
|
|
|
| ^^^^^^^^ the trait `d::Trait` is not implemented for `T`
|
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `d::Inner<T>` to implement `Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:49:13
|
|
|
|
|
|
|
|
|
LL | impl<T> Debug for Inner<T> where T: Debug, T: Trait {
|
2023-01-10 21:21:11 -06:00
|
|
|
| ^^^^^ ^^^^^^^^ ----- unsatisfied trait bound introduced here
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: 1 redundant requirement hidden
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&d::Inner<T>` to implement `Debug`
|
2023-05-10 21:10:56 -05:00
|
|
|
= note: required for the cast from `&&d::Inner<T>` to `&dyn Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-11-17 17:35:38 -06:00
|
|
|
help: consider restricting type parameter `T`
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
2021-11-17 17:35:38 -06:00
|
|
|
LL | struct Outer<T: d::Trait>(Inner<T>);
|
|
|
|
| ++++++++++
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `T: e::Trait` is not satisfied
|
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:71:21
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct Outer<T>(Inner<T>);
|
|
|
|
| ^^^^^^^^ the trait `e::Trait` is not implemented for `T`
|
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `e::Inner<T>` to implement `Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:64:13
|
|
|
|
|
|
|
|
|
LL | impl<T> Debug for Inner<T> where T: Debug + Trait {
|
2023-01-10 21:21:11 -06:00
|
|
|
| ^^^^^ ^^^^^^^^ ----- unsatisfied trait bound introduced here
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: 1 redundant requirement hidden
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&e::Inner<T>` to implement `Debug`
|
2023-05-10 21:10:56 -05:00
|
|
|
= note: required for the cast from `&&e::Inner<T>` to `&dyn Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-11-17 17:35:38 -06:00
|
|
|
help: consider restricting type parameter `T`
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
2021-11-17 17:35:38 -06:00
|
|
|
LL | struct Outer<T: e::Trait>(Inner<T>);
|
|
|
|
| ++++++++++
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
|
|
error[E0277]: the trait bound `T: f::Trait` is not satisfied
|
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:86:21
|
|
|
|
|
|
|
|
|
LL | #[derive(Debug)]
|
|
|
|
| ----- in this derive macro expansion
|
|
|
|
LL | struct Outer<T>(Inner<T>);
|
|
|
|
| ^^^^^^^^ the trait `f::Trait` is not implemented for `T`
|
|
|
|
|
|
2022-08-15 15:31:37 -05:00
|
|
|
note: required for `f::Inner<T>` to implement `Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
--> $DIR/derive-macro-missing-bounds.rs:79:20
|
|
|
|
|
|
|
|
|
LL | impl<T: Debug> Debug for Inner<T> where T: Trait {
|
2023-01-10 21:21:11 -06:00
|
|
|
| ^^^^^ ^^^^^^^^ ----- unsatisfied trait bound introduced here
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: 1 redundant requirement hidden
|
2022-08-15 15:31:37 -05:00
|
|
|
= note: required for `&f::Inner<T>` to implement `Debug`
|
2023-05-10 21:10:56 -05:00
|
|
|
= note: required for the cast from `&&f::Inner<T>` to `&dyn Debug`
|
2021-11-02 23:19:06 -05:00
|
|
|
= note: this error originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2021-11-17 17:35:38 -06:00
|
|
|
help: consider restricting type parameter `T`
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
2021-11-17 17:35:38 -06:00
|
|
|
LL | struct Outer<T: f::Trait>(Inner<T>);
|
|
|
|
| ++++++++++
|
2021-11-02 23:19:06 -05:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|