]> git.lizzy.rs Git - rust.git/blob - tests/ui/transmute-equal-assoc-types.rs
Rollup merge of #107086 - clubby789:bootstrap-lock-pid-linux, r=albertlarsan68
[rust.git] / tests / ui / transmute-equal-assoc-types.rs
1 // check-pass
2
3 trait Foo {
4     type Bar;
5 }
6
7 unsafe fn noop<F: Foo>(foo: F::Bar) -> F::Bar {
8     ::std::mem::transmute(foo)
9 }
10
11 fn main() {}