99433a1ffd
Also properly check the "non-capturing Fn to fn" case
10 lines
158 B
Rust
10 lines
158 B
Rust
fn main() {
|
|
fn f(_: *const u8) {}
|
|
|
|
let g = unsafe {
|
|
std::mem::transmute::<fn(*const u8), fn(*const i32)>(f)
|
|
};
|
|
|
|
g(&42 as *const _);
|
|
}
|