2 fn method1(self: Box<Self>);
5 fn method2(self: Box<Self>);
9 fn method1(self: Box<Self>) {}
13 let r = Box::new(0) as Box<dyn T1>;
14 let r2: Box<dyn T2> = unsafe { std::mem::transmute(r) };
15 r2.method2(); //~ERROR: call on a pointer whose vtable does not match its type