1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[cfg(feature = "use_core")] extern crate core; #[macro_use] extern crate derivative; #[derive(Derivative)] #[derivative(Debug)] struct Foo<T, U> { foo: T, #[derivative(Debug(format_with="std::fmt::Debug::fmt"))] bar: U, } fn main() {}