2016-08-27 01:44:46 -06:00
|
|
|
fn main() {
|
2016-06-14 10:34:54 +02:00
|
|
|
fn f() {}
|
|
|
|
|
2016-07-06 17:55:05 +02:00
|
|
|
let g = unsafe {
|
2016-06-14 10:34:54 +02:00
|
|
|
std::mem::transmute::<fn(), fn(i32)>(f)
|
|
|
|
};
|
|
|
|
|
2018-08-27 17:08:42 +02:00
|
|
|
g(42) //~ ERROR tried to call a function with incorrect number of arguments
|
2016-06-14 10:34:54 +02:00
|
|
|
}
|