Sign in
fuchsia
/
third_party
/
rust
/
a22e9ee8d0801f9738533b76a492e94065767cbc
/
.
/
src
/
test
/
ui
/
fn-in-pat.rs
blob: ed76b2c5db025a86f65a84d6f8f88b9339933db6 [
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/variant, found method
_
=>
()
})
}
fn
main
()
{}