Sign in
◑
Theme
rust
/
rust
/
32ce99c38ee6a9d4a397e97a9017d69052d63d0f
/
.
/
tests
/
ui
/
function-pointer
/
signature-mismatch.rs
blob: f269e9bf84b318c087cb2a2050f1a9655a0b2ca6 [
file
]
//! 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
}