mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 01:26:32 +00:00
21 lines
484 B
Rust
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() {}
|