Sign in
fuchsia
/
third_party
/
rust
/
bf84eb538fd16743240434b3e837b36c35719fee
/
.
/
src
/
test
/
ui
/
issues
/
issue-28971.rs
blob: f0a1e2d006179e0949b4e5abedc2dc8345b4aa97 [
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
_
=>
(),
}
});
}
fn
foo
<
F
>(
f
:
F
)
where F
:
FnMut
()
{
f
();
}