Sign in
rust
/
rust-lang
/
rust
/
refs/heads/beta
/
.
/
tests
/
ui
/
function-pointer
/
signature-mismatch.rs
blob: f269e9bf84b318c087cb2a2050f1a9655a0b2ca6 [
file
] [
log
] [
blame
]
//! This test used to hit an assertion instead of erroring and bailing out.
fn
main
()
{
let
_
=
[
std
::
ops
::
Add
::
add
,
std
::
ops
::
Mul
::
mul
,
std
::
ops
::
Mul
::
mul
as
fn
(
_
,
&
_
)];
//~^ ERROR: mismatched types
}