summaryrefslogtreecommitdiffstats
path: root/src/test/ui/transmute-equal-assoc-types.rs
blob: 6f357543e5c44103705f931543ad6f593156f9f9 (plain)
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() {}