1 2 3 4 5 6 7 8 9
trait Foo { type Bar; } unsafe fn noop<F: Foo>(foo: F::Bar) -> F::Bar { ::std::mem::transmute(foo) //~ ERROR cannot transmute between types of different sizes } fn main() {}