Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
7c547894c76efe9303caa3108754674c39bd901d
/
.
/
tests
/
ui
/
mismatched_types
/
closure-arg-type-mismatch-issue-45727.fixed
blob: e6e3e1551e9591f20f305ef049488733f0b2048e [
file
] [
log
] [
blame
]
//@ run-rustfix
fn main
()
{
let
_
=
(-
10.
.=
10
).
find
(|
x
:
&
i32
|
x
.
signum
()
==
0
);
//~ ERROR type mismatch in closure arguments
let
_
=
(-
10.
.=
10
).
find
(|
x
:
&
i32
|
x
.
signum
()
==
0
);
//~ ERROR type mismatch in closure arguments
}