2016-08-27 02:44:46 -05:00
|
|
|
fn main() {
|
2020-03-21 06:52:23 -05:00
|
|
|
fn f() {}
|
2016-06-14 03:34:54 -05:00
|
|
|
|
2022-06-19 22:33:59 -05:00
|
|
|
let g = unsafe { std::mem::transmute::<fn(), fn(i32)>(f) };
|
2016-06-14 03:34:54 -05:00
|
|
|
|
2022-07-11 06:44:55 -05:00
|
|
|
g(42) //~ ERROR: calling a function with more arguments than it expected
|
2016-06-14 03:34:54 -05:00
|
|
|
}
|