6 fn repro(self, s: MyStruct) -> String;
9 impl<F> Repro for F where F: FnOnce(MyStruct) -> String {
10 fn repro(self, s: MyStruct) -> String {
15 fn do_stuff<R: Repro>(r: R) -> String {
20 assert_eq!("MyStruct".to_string(), do_stuff(|s: MyStruct| format!("{:?}", s)));