]> git.lizzy.rs Git - rust.git/blob - src/test/ui/transmute-equal-assoc-types.rs
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / 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() {}