Files
rust/tests/ui/lint/missing-debug-implementations-lint/impl-debug-for-project.rs
2026-06-12 20:28:31 +08:00

21 lines
484 B
Rust

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