Sign in
rust
/
miri
/
HEAD
/
.
/
tests
/
fail
/
function_pointers
/
abi_mismatch_too_many_args.rs
blob: c0e96a43cc5223c7bbd31ce1ec26a16f00a7e483 [
file
] [
log
] [
blame
]
fn
main
()
{
fn
f
()
{}
let
g
=
unsafe
{
std
::
mem
::
transmute
::<
fn
(),
fn
(
i32
)>(
f
)
};
g
(
42
)
//~ ERROR: calling a function with more arguments than it expected
}