Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
fn-in-pat.rs
blob: 2d7c86b8666f855347402710f07e3758d9b0d1f8 [
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 associated function
_
=>
()
})
}
fn
main
()
{}