summaryrefslogtreecommitdiffstats
path: root/src/test/ui/transmute-equal-assoc-types.rs
blob: d1b593b7f0a71c27696978b5ee0a76922e73c6dd (plain)
1
2
3
4
5
6
7
8
9
10
11
// check-pass

trait Foo {
    type Bar;
}

unsafe fn noop<F: Foo>(foo: F::Bar) -> F::Bar {
    ::std::mem::transmute(foo)
}

fn main() {}