blob: 6f357543e5c44103705f931543ad6f593156f9f9 [file] [log] [blame]
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() {}