3 #![allow(non_camel_case_types)]
5 #[derive(Clone, Debug)]
11 fn check_log<T: std::fmt::Debug>(exp: String, v: T) {
12 assert_eq!(exp, format!("{:?}", v));
16 let mut x = Some(foo::a(22));
17 let exp = "Some(a(22))".to_string();
18 let act = format!("{:?}", x);
23 let exp = "None".to_string();
24 let act = format!("{:?}", x);