Sign in
fuchsia
/
third_party
/
rust
/
a7a6dedfe661a6d9d181afeb0fbaa894fcb7362b
/
.
/
src
/
test
/
ui
/
issues
/
issue-28971.rs
blob: 6493565d2164719b9b51cf36c6cf35c469b78b0e [
file
] [
log
] [
blame
]
enum
Foo
{
Bar
(
u8
)
}
fn
main
(){
foo
(||
{
match
Foo
::
Bar
(
1
)
{
Foo
::
Baz
(..)
=>
(),
//~^ ERROR no variant or associated item named `Baz` found for type `Foo`
_
=>
(),
}
});
}
fn
foo
<
F
>(
f
:
F
)
where F
:
FnMut
()
{
f
();
}