//@ check-pass #![deny(missing_debug_implementations)] pub struct Local; impl std::fmt::Debug for ::Output { fn fmt(&self, _: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) } } pub trait Identity { type Output; } impl Identity for T { type Output = T; } pub struct Generic(T); impl std::fmt::Debug for as Identity>::Output { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { Ok(()) } } fn main() {}