1 // compile-flags: --crate-type lib
2 #![deny(missing_debug_implementations)]
7 pub enum A {} //~ ERROR type does not implement `fmt::Debug`
14 impl fmt::Debug for C {
15 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
20 pub struct Foo; //~ ERROR type does not implement `fmt::Debug`
27 impl fmt::Debug for Baz {
28 fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
38 struct GenericType<T>(T);