error[E0277]: `NotDebug` doesn't implement `Debug`
--> tests/compile_fail/associated_debug_missing_bound.rs:25:29
|
25 | let _ = format!("{:?}", value);
| ---- ^^^^^ `NotDebug` cannot be formatted using `{:?}` because it doesn't implement `Debug`
| |
| required by this formatting parameter
|
= help: the trait `Debug` is not implemented for `NotDebug`
= note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug`
help: the trait `Debug` is implemented for `Wrapper<T>`
--> tests/compile_fail/associated_debug_missing_bound.rs:15:10
|
15 | #[derive(SensitiveDebug)]
| ^^^^^^^^^^^^^^
note: required for `Wrapper<Demo>` to implement `Debug`
--> tests/compile_fail/associated_debug_missing_bound.rs:16:8
|
15 | #[derive(SensitiveDebug)]
| -------------- type parameter would need to implement `Debug`
16 | struct Wrapper<T>
| ^^^^^^^^^^
= help: consider manually implementing `Debug` to avoid undesired bounds
= note: this error originates in the macro `$crate::__export::format_args` which comes from the expansion of the derive macro `SensitiveDebug` (in Nightly builds, run with -Z macro-backtrace for more info)
help: consider annotating `NotDebug` with `#[derive(Debug)]`
|
7 + #[derive(Debug)]
8 | struct NotDebug;
|