Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-28971.rs
blob: 8e7a2fe0ef209aafff6d781b7476ba6cfd205ef1 [
file
] [
log
] [
blame
] [
edit
]
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
();
//~^ ERROR: cannot borrow
}