Sign in
fuchsia
/
third_party
/
rust
/
a9aa2dfe844840a7e414873ce55ef9d02f1038a7
/
.
/
src
/
test
/
ui
/
fn-in-pat.rs
blob: b83252012b8f8bfd1572e0e8f5023e0d523d45ba [
file
] [
log
] [
blame
]
struct
A
{}
impl
A
{
fn
new
()
{}
}
fn
hof
<
F
>(
_
:
F
)
where F
:
FnMut
(())
{}
fn
ice
()
{
hof
(|
c
|
match
c
{
A
::
new
()
=>
(),
//~ ERROR expected tuple struct or tuple variant, found method
_
=>
()
})
}
fn
main
()
{}