Sign in
rust
/
rust
/
08cd08fbef8c6663b052d8d9e4930d5696cbb8a7
/
.
/
tests
/
ui
/
issues
/
issue-28971.rs
blob: e6a504f52e0cd6cc29d387c5af91bded46f518db [
file
]
enum
Foo
{
Bar
(
u8
)
}
fn
main
(){
foo
(||
{
match
Foo
::
Bar
(
1
)
{
Foo
::
Baz
(..)
=>
(),
//~^ ERROR no variant, associated function, or constant named `Baz` found
_
=>
(),
}
});
}
fn
foo
<
F
>(
f
:
F
)
where F
:
FnMut
()
{
f
();
//~^ ERROR: cannot borrow
}