Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
mismatched_types
/
closure-mismatch.rs
blob: 40a4641fe719602f3991dc7a49478f3d5dfafc54 [
file
] [
log
] [
blame
]
trait
Foo
{}
impl
<
T
:
Fn
(&())>
Foo
for
T
{}
fn
baz
<
T
:
Foo
>(
_
:
T
)
{}
fn
main
()
{
baz
(|
_
|
());
//~ ERROR type mismatch
//~^ ERROR type mismatch
}